Fix some layout
This commit is contained in:
parent
7195ebb64f
commit
11766b2fac
@ -27,6 +27,8 @@ class ListViewCardImage extends StatefulWidget {
|
|||||||
class _ListViewCard extends State<ListViewCardImage> {
|
class _ListViewCard extends State<ListViewCardImage> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
Size size = MediaQuery.of(context).size;
|
||||||
|
|
||||||
return Card(
|
return Card(
|
||||||
margin: EdgeInsets.all(4),
|
margin: EdgeInsets.all(4),
|
||||||
child: Stack(
|
child: Stack(
|
||||||
@ -47,12 +49,14 @@ class _ListViewCard extends State<ListViewCardImage> {
|
|||||||
style: new TextStyle(fontSize: 15),
|
style: new TextStyle(fontSize: 15),
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
),
|
),
|
||||||
Container(
|
Center(
|
||||||
|
child: Container(
|
||||||
height: MediaQuery.of(context).size.height * 0.1,
|
height: MediaQuery.of(context).size.height * 0.1,
|
||||||
decoration: boxDecoration(widget.listItems[widget.index], widget.appContext),
|
decoration: boxDecoration(widget.listItems[widget.index], widget.appContext),
|
||||||
padding: const EdgeInsets.all(10),
|
padding: const EdgeInsets.all(10),
|
||||||
margin: EdgeInsets.symmetric(vertical: 10, horizontal: 10),
|
margin: EdgeInsets.symmetric(vertical: 10, horizontal: 10),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
/*Padding(
|
/*Padding(
|
||||||
padding: const EdgeInsets.all(5.0),
|
padding: const EdgeInsets.all(5.0),
|
||||||
child: AutoSizeText(
|
child: AutoSizeText(
|
||||||
|
|||||||
@ -42,7 +42,7 @@ class _SliderConfigState extends State<SliderConfig> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final appContext = Provider.of<AppContext>(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) {
|
void _onReorder(int oldIndex, int newIndex) {
|
||||||
setState(
|
setState(
|
||||||
@ -66,7 +66,9 @@ class _SliderConfigState extends State<SliderConfig> {
|
|||||||
|
|
||||||
return Stack(
|
return Stack(
|
||||||
children: [
|
children: [
|
||||||
ReorderableListView(
|
Container(
|
||||||
|
width: size.width * 0.95,
|
||||||
|
child: ReorderableListView(
|
||||||
onReorder: _onReorder,
|
onReorder: _onReorder,
|
||||||
scrollDirection: Axis.horizontal,
|
scrollDirection: Axis.horizontal,
|
||||||
padding: const EdgeInsets.symmetric(vertical: 20.0),
|
padding: const EdgeInsets.symmetric(vertical: 20.0),
|
||||||
@ -93,6 +95,7 @@ class _SliderConfigState extends State<SliderConfig> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
Positioned(
|
Positioned(
|
||||||
bottom: 0,
|
bottom: 0,
|
||||||
right: 0,
|
right: 0,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user