code1
unknown
dart
3 years ago
2.5 kB
20
Indexable
return Scaffold( body: SingleChildScrollView( padding: EdgeInsets.only(top: 10), physics: BouncingScrollPhysics(), child: ListView.separated( separatorBuilder: (context, index) { return SizedBox(height: 10); }, padding: EdgeInsets.only(top: 10), physics: NeverScrollableScrollPhysics(), shrinkWrap: true, itemCount: snapshot.data.length, itemBuilder: (context, index) { return Column( mainAxisSize: MainAxisSize.min, children: [ Padding( padding: EdgeInsets.only( right: size.width * .15, left: size.width * .10), child: Row( mainAxisAlignment: MainAxisAlignment.end, children: [ Container( color: Colors.blue, width: size.width * .05, height: size.height * .025, child: Center( child: InkWell( onTap: () { print('hello'); }, child: Image.asset('assets/icons/v2/edit_1.png'), ), ), ), SizedBox( width: 10, ), Container( color: Colors.blue, child: InkWell( onTap: () => print('Hi'), child: Container( width: size.width * .05, height: size.height * .025, child: Center( child: Image.asset( 'assets/icons/v2/remove.png')), ), ), ), ], ), ), ], ); }), ), );
Editor is loading...