S
Size: a a a
S
S
r
КА
КА
Widget build(BuildContext context) {//Отсюда
return ListView(children: <Widget>[
Column(crossAxisAlignment: CrossAxisAlignment.stretch, children: <Widget>[
SizedBox(
height: 20,
),
Padding(
padding: EdgeInsets.only(left: 16),
child: Row
(
children: <Widget>[
Text(
'Main image',
style: TextStyle(
color: Colors.black,
fontSize: 20,
),
),
Icon(mainImageActive
? Icons.arrow_drop_up
: Icons.arrow_drop_down),
],
),
),
SizedBox(
height: 10,
),
FlatButton(
onPressed: () {},
child: Padding(
padding: EdgeInsets.only(left: 20),
child: Row(
children: <Widget>[
Text(
'Load image',
style: TextStyle(
color: Colors.black,
fontSize: 15,
),
),
Icon(Icons.file_upload)
],
),
),
),
Divider(
thickness: 1,
height: 10,
),
CheckboxListTile(
value: catalog.descriptionBool,
title: Text(
'Description',
style: TextStyle(
color: Colors.black,
fontSize: 20,
),
),
onChanged: (bool value) {
setState(() {
catalog.descriptionBool = value;
});
},
),
catalog.descriptionBool
? Padding(
padding: EdgeInsets.only(left: 20, right: 20),
child: TextField(
maxLength: 20,
controller: _controller1,
decoration: InputDecoration(
border: OutlineInputBorder(),
labelText: 'Description text',
),
),
)
: SizedBox(),
Divider(
thickness: 1,
height: 10,
),
Padding(
padding: EdgeInsets.only(left: 16),
child: GestureDetector(
onTap: () {
setState(() {
imageInCatalogActive = !imageInCatalogActive;
});
},
child: Row(
children: <Widget>[
Text(
'Images in catalog',
style: TextStyle(
color: Colors.black,
fontSize: 20,
),
),
Icon(imageInCatalogActive
? Icons.arrow_drop_up
: Icons.arrow_drop_down),
],
),
),
),
imageInCatalogActive//До сюда
? [
SizedBox(
height: 10,
),
FlatButton(
onPressed: loadAssets,
child: Padding(
padding: EdgeInsets.only(left: 20),
child: Row(
children: <Widget>[
Text(
'Load images (' +
imagesList.length.toString() +
'/20 )',
style: TextStyle(
color: Colors.black,
fontSize: 15,
),
),
Icon(Icons.file_upload)
],
),
),
),
(imagesList.length > 0)
? Container(
height: 200,
child: buildGridView(),
)
: SizedBox(),
]
: SizedBox()
]),
]);
}
КА
H
H
КА
S
DS
КА
H
H
DS
H
DS
H
DS