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(
|
Expanded(
|
||||||
height: size.height *0.85,
|
|
||||||
child: SingleChildScrollView(
|
|
||||||
child: GridView.builder(
|
child: GridView.builder(
|
||||||
shrinkWrap: true,
|
shrinkWrap: true,
|
||||||
gridDelegate: new SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 6),
|
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);
|
final appContext = Provider.of<AppContext>(context);
|
||||||
Size size = MediaQuery.of(context).size;
|
Size size = MediaQuery.of(context).size;
|
||||||
|
|
||||||
return Container(
|
return FutureBuilder(
|
||||||
child: FutureBuilder(
|
|
||||||
future: getResources(widget.onGetResult, widget.isImage, appContext),
|
future: getResources(widget.onGetResult, widget.isImage, appContext),
|
||||||
builder: (context, AsyncSnapshot<dynamic> snapshot) {
|
builder: (context, AsyncSnapshot<dynamic> snapshot) {
|
||||||
if (snapshot.connectionState == ConnectionState.done) {
|
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')));
|
return Center(child: Container(height: size.height * 0.2, child: Text('LOADING TODO FRAISE')));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user