Changed appBar color and body's color

This commit is contained in:
Matthew Patrick 2022-04-23 03:23:28 +07:00
parent a4dc946e7b
commit ecdfb66dbc

View file

@ -10,13 +10,14 @@ class Products extends StatefulWidget {
}
class _ProductsState extends State<Products> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Color(0xff1b1c1e),
appBar: AppBar(
title: const Text('Nekoya')
title: const Text('Nekoya'),
centerTitle: true,
backgroundColor: Color(0xff212226),
),
body: FutureBuilder<dynamic>(
future: getProducts(),
@ -27,9 +28,9 @@ class _ProductsState extends State<Products> {
itemCount: data!.length,
itemBuilder: (context, index) {
return ProductBox(
imageUrl: 'https://nekoya.moe.team/img/' + data[index]['IMAGE'],
title: data[index]['TITLE']
);
imageUrl:
'https://nekoya.moe.team/img/' + data[index]['IMAGE'],
title: data[index]['TITLE']);
},
);
}
@ -37,7 +38,7 @@ class _ProductsState extends State<Products> {
child: CircularProgressIndicator(),
);
},
)
),
);
}
}
}