chip

Widget _buildChip(String label, Color color) {
return Chip(
labelPadding: EdgeInsets.all(2.0),
avatar: CircleAvatar(
backgroundColor: Colors.white70,
child: Text(label[0].toUpperCase()),
),
label: Text(
label,
style: TextStyle(
color: Colors.white,
),
),
backgroundColor: color,
elevation: 6.0,
shadowColor: Colors.grey[60],
padding: EdgeInsets.all(8.0),
);
}
}
chipList() {
return Wrap(
spacing: 6.0,
runSpacing: 6.0,
children: <Widget>[
_buildChip('Gamer', Color(0xFFff6666)),
_buildChip('Hacker', Color(0xFF007f5c)),
_buildChip('Developer', Color(0xFF5f65d3)),
_buildChip('Racer', Color(0xFF19ca21)),
_buildChip('Traveller', Color(0xFF60230b)),
],
);
}ProgressIndicator Component
CircularProgressIndicator(
valueColor:
AlwaysStoppedAnimation<Color>
(Colors.green),
);CircularProgressIndicator(
backgroundColor: Colors.grey,
);CircularProgressIndicator(
value: _downloadPercentage,
);Tooltip
Tooltip(
message: 'Dash',
child: MyVisualWidget(),
)Card
class FilledCardExample extends StatelessWidget {
const FilledCardExample({super.key});
Widget build(BuildContext context) {
return Center(
child: Card(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(50.0)),
elevation: 30,
color: Theme.of(context).colorScheme.surfaceVariant,
child: const SizedBox(
width: 300,
height: 100,
child: Center(child: Text('Filled Card')),
),
),
);
}
} 