17 Widget
build(BuildContext context) {
19 mainAxisAlignment: MainAxisAlignment.spaceAround,
20 children:
tabs.asMap().entries.map((entry) {
22 child: ElevatedButton(
23 onPressed: () => onTapSelected(entry.key),
24 style: OutlinedButton.styleFrom(
25 padding: EdgeInsets.only(top: 12.sp),
26 backgroundColor: Theme.of(context).scaffoldBackgroundColor,
27 shape: const RoundedRectangleBorder(
28 borderRadius: BorderRadius.zero,
32 mainAxisSize: MainAxisSize.min,
38 style: Theme.of(context).textTheme.bodySmall,
40 SizedBox(height: 10.sp),
44 color: selctedIndex == entry.key
45 ? Theme.of(context).colorScheme.primary