part of home_view; List 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 buildItem(BuildContext ctxt, int index) { return ProductListItem( item: new ProductDao(name: 'Наименование', count: 123, price: 2332.02), ); } @override Widget build(BuildContext context) { return Scaffold( backgroundColor: fillColor, body: Padding( padding: EdgeInsets.all(4), child: Column( children: [ Row( children: [ 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) => buildItem(ctxt, index)), ), ), Row( children: [ 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, ), ), ), ], ) ], ), ), ); } }