flutter listtile color
ListTile(
tileColor: Colors.blue[100], // Defines the background color of ListTile when selected is false.
leading: FlutterLogo(),
title: Text('ListTile'),
),
flutter listtile color
ListTile(
tileColor: Colors.blue[100], // Defines the background color of ListTile when selected is false.
leading: FlutterLogo(),
title: Text('ListTile'),
),
how to change background color of list view in flutter
class PageTwoState extends State<PageTwo> {
@override
Widget build(BuildContext context) {
return ListView.builder(
itemExtent: 250.0,
itemBuilder: (context, index) => Container(
padding: EdgeInsets.all(10.0),
child: Material(
elevation: 4.0,
borderRadius: BorderRadius.circular(5.0),
color: index % 2 == 0 ? Colors.cyan : Colors.deepOrange,
child: Center(
child: Text(index.toString()),
),
),
),
);
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us