return Column( children: [ Table( border: TableBorder.symmetric( inside: BorderSide(…
- User
return Column( children: [ Table( border: TableBorder.symmetric( inside: BorderSide( color: UIColors.aluminium, style: BorderStyle.solid, width: 2.w), ), children: [ TableRow( decoration: BoxDecoration( border: Border( top: BorderSide( color: UIColors.aluminium, style: BorderStyle.solid, width: 3.w), bottom: BorderSide( color: UIColors.aluminium, style: BorderStyle.solid, width: 3.w), right: BorderSide( color: UIColors.aluminium, style: BorderStyle.solid, width: 3.w), left: BorderSide( color: UIColors.aluminium, style: BorderStyle.solid, width: 3.w), )), children: [ // Fixed row cells Padding( padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 2.h), child: Column( crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start, children: [ SizedBox( height: 5.h, ), sectionTitle('Price'), SizedBox( height: 7.h, ), specificationsType('Price'), ], ), ),
Padding( padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 2.h), child: TableCell( child: specificationsDetails(0, '300'), ), ), Padding( padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 2.h), child: TableCell( child: specificationsDetails(0, '300'), ), ), Padding( padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 2.h), child: TableCell( child: specificationsDetails(0, '300'), ), ), ]) ]), ListView.builder( physics: const NeverScrollableScrollPhysics(), shrinkWrap: true, itemCount: widget.firstHandsets?.specifications?.length ?? 0, itemBuilder: (context, index) { return Table( border: TableBorder.symmetric( inside: BorderSide( color: UIColors.aluminium, style: BorderStyle.solid, width: 2.w), ), children: [tableRow(index)], ); }, ), ], );} this code duplicate the first row many times i just want it to show one at the top
- Assistant
- User
no i want to remian the dynamic row as it and just show the fixed row once at top
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.