Add image to search page

This commit is contained in:
Moe Poi ~ 2020-09-07 23:31:10 +07:00
parent 071fd0c30b
commit e72cf89246
3 changed files with 12 additions and 1 deletions

BIN
lib/assets/search.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

View file

@ -24,7 +24,17 @@ class _SearchState extends State<Search> {
}
Widget startSearch() {
return Text('SEARCH RESULT WILL BE HERE !!!');
return Center(
child: Container(
margin: EdgeInsets.only(top: 60, bottom: 60, left: 45, right: 45),
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage('lib/assets/search.webp'),
fit: BoxFit.contain
)
),
),
);
}
Widget loadSearch(String query) {

View file

@ -56,6 +56,7 @@ flutter:
- lib/assets/splash.webp
- lib/assets/drawer-top.webp
- lib/assets/drawer-bottom.webp
- lib/assets/search.webp
- lib/assets/creator.webp
- lib/assets/image-error.webp
# An image asset can refer to one or more resolution-specific "variants", see