Resolve renderflex overflowed for resources list
This commit is contained in:
parent
ab833808a4
commit
019402b4c0
@ -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> {
|
||||
}
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
@ -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')));
|
||||
}
|
||||
}
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user