Fix some layout

This commit is contained in:
Fransolet Thomas 2022-06-22 18:54:47 +02:00
parent 7195ebb64f
commit 11766b2fac
2 changed files with 38 additions and 31 deletions

View File

@ -27,6 +27,8 @@ class ListViewCardImage extends StatefulWidget {
class _ListViewCard extends State<ListViewCardImage> {
@override
Widget build(BuildContext context) {
Size size = MediaQuery.of(context).size;
return Card(
margin: EdgeInsets.all(4),
child: Stack(
@ -47,12 +49,14 @@ class _ListViewCard extends State<ListViewCardImage> {
style: new TextStyle(fontSize: 15),
maxLines: 1,
),
Container(
Center(
child: Container(
height: MediaQuery.of(context).size.height * 0.1,
decoration: boxDecoration(widget.listItems[widget.index], widget.appContext),
padding: const EdgeInsets.all(10),
margin: EdgeInsets.symmetric(vertical: 10, horizontal: 10),
),
),
/*Padding(
padding: const EdgeInsets.all(5.0),
child: AutoSizeText(

View File

@ -42,7 +42,7 @@ class _SliderConfigState extends State<SliderConfig> {
@override
Widget build(BuildContext context) {
final appContext = Provider.of<AppContext>(context);
//Size size = MediaQuery.of(context).size;
Size size = MediaQuery.of(context).size;
void _onReorder(int oldIndex, int newIndex) {
setState(
@ -66,7 +66,9 @@ class _SliderConfigState extends State<SliderConfig> {
return Stack(
children: [
ReorderableListView(
Container(
width: size.width * 0.95,
child: ReorderableListView(
onReorder: _onReorder,
scrollDirection: Axis.horizontal,
padding: const EdgeInsets.symmetric(vertical: 20.0),
@ -93,6 +95,7 @@ class _SliderConfigState extends State<SliderConfig> {
},
),
),
),
Positioned(
bottom: 0,
right: 0,