101 lines
3.1 KiB
Dart
101 lines
3.1 KiB
Dart
part of home_view;
|
|
|
|
List<String> litems = ["1","2","3","4","1","2","3","4","1","2","3","4","1","2","3","4","1","2","3","4","1","2","3","4","1","2","3","4","1","2","3","4"];
|
|
|
|
class KassaTab extends StatelessWidget {
|
|
final HomeViewModel viewModel;
|
|
final int index;
|
|
|
|
KassaTab(this.viewModel, this.index);
|
|
|
|
Widget buildBody(BuildContext ctxt, int index) {
|
|
return new Text(litems[index]);
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: Padding(
|
|
padding: EdgeInsets.all(4),
|
|
child: Column(
|
|
children: <Widget>[
|
|
Row(
|
|
children: <Widget>[
|
|
Expanded(
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(4.0),
|
|
child: RaisedButton(
|
|
padding: EdgeInsets.all(8),
|
|
color: primaryColor,
|
|
child: Text(
|
|
"Добавить",
|
|
style: buttonBigTitleTextStyle,
|
|
),
|
|
onPressed: () => null,
|
|
),
|
|
),
|
|
),
|
|
Expanded(
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(4.0),
|
|
child: RaisedButton(
|
|
padding: EdgeInsets.all(8),
|
|
color: greenColor,
|
|
child: Text(
|
|
"Каталог",
|
|
style: buttonBigTitleTextStyle,
|
|
),
|
|
onPressed: () => null,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
Expanded(
|
|
child: Container(
|
|
child: ListView.builder
|
|
(
|
|
itemCount: litems.length,
|
|
itemBuilder: (BuildContext ctxt, int index) => buildBody(ctxt, index)
|
|
),
|
|
),
|
|
),
|
|
Row(
|
|
children: <Widget>[
|
|
Expanded(
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(4.0),
|
|
child: RaisedButton(
|
|
padding: EdgeInsets.all(8),
|
|
color: redColor,
|
|
child: Text(
|
|
"Возврат",
|
|
style: buttonBigTitleTextStyle,
|
|
),
|
|
onPressed: () => null,
|
|
),
|
|
),
|
|
),
|
|
Expanded(
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(4.0),
|
|
child: RaisedButton(
|
|
padding: EdgeInsets.all(8),
|
|
color: greenColor,
|
|
child: Text(
|
|
"Оплата",
|
|
style: buttonBigTitleTextStyle,
|
|
),
|
|
onPressed: () => null,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
)
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|