add colors menu
This commit is contained in:
parent
4804c8bc01
commit
581512a6da
@ -88,6 +88,8 @@ class _MyHomePageState extends State<ListItemMenu> {
|
|||||||
// Here we take the value from the MyHomePage object that was created by
|
// Here we take the value from the MyHomePage object that was created by
|
||||||
// the App.build method, and use it to set our appbar title.
|
// the App.build method, and use it to set our appbar title.
|
||||||
title: Text("Item list menu"),
|
title: Text("Item list menu"),
|
||||||
|
backgroundColor: Colors.blue,
|
||||||
|
foregroundColor: Colors.white,
|
||||||
),
|
),
|
||||||
body: ListView.separated(
|
body: ListView.separated(
|
||||||
itemCount: posts.length,
|
itemCount: posts.length,
|
||||||
@ -99,6 +101,13 @@ class _MyHomePageState extends State<ListItemMenu> {
|
|||||||
separatorBuilder: (context, index) {
|
separatorBuilder: (context, index) {
|
||||||
return Divider();
|
return Divider();
|
||||||
},
|
},
|
||||||
));
|
),
|
||||||
|
floatingActionButton: FloatingActionButton(
|
||||||
|
onPressed: () {},
|
||||||
|
backgroundColor: Colors.blue,
|
||||||
|
tooltip: 'Recherche',
|
||||||
|
child: const Icon(Icons.search, color: Colors.white),
|
||||||
|
),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -154,6 +154,8 @@ class _LoginDemoState extends State<LoginDemo> with ShowErrorDialog {
|
|||||||
backgroundColor: Colors.white,
|
backgroundColor: Colors.white,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text("Login Page"),
|
title: Text("Login Page"),
|
||||||
|
backgroundColor: Colors.blue,
|
||||||
|
foregroundColor: Colors.white,
|
||||||
),
|
),
|
||||||
body: SingleChildScrollView(
|
body: SingleChildScrollView(
|
||||||
child: Column(
|
child: Column(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user