Resolve renderflex overflowed for resources list

This commit is contained in:
Thomas Fransolet 2021-05-25 19:15:56 +02:00
parent ab833808a4
commit 019402b4c0
2 changed files with 49 additions and 54 deletions

View File

@ -88,9 +88,7 @@ class _ResourceBodyGridState extends State<ResourceBodyGrid> {
)
],
),
Container(
height: size.height *0.85,
child: SingleChildScrollView(
Expanded(
child: GridView.builder(
shrinkWrap: true,
gridDelegate: new SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 6),
@ -114,7 +112,6 @@ class _ResourceBodyGridState extends State<ResourceBodyGrid> {
}
),
),
),
],
);
}

View File

@ -31,8 +31,7 @@ class _ResourcesScreenState extends State<ResourcesScreen> {
final appContext = Provider.of<AppContext>(context);
Size size = MediaQuery.of(context).size;
return Container(
child: FutureBuilder(
return FutureBuilder(
future: getResources(widget.onGetResult, widget.isImage, appContext),
builder: (context, AsyncSnapshot<dynamic> snapshot) {
if (snapshot.connectionState == ConnectionState.done) {
@ -63,7 +62,6 @@ class _ResourcesScreenState extends State<ResourcesScreen> {
return Center(child: Container(height: size.height * 0.2, child: Text('LOADING TODO FRAISE')));
}
}
),
);
}
}