Advertisement
virtuoso_o

TABBBAR

Nov 24th, 2022
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 2.47 KB | Source Code | 0 0
  1.          Padding(
  2.                 padding: EdgeInsets.only(left: 20.0.w),
  3.                 child: TabBar(
  4.                     indicator: BoxDecoration(
  5.                       borderRadius: BorderRadius.circular(
  6.                         10.0.r,
  7.                       ),
  8.                       color: AltBankColor.dAltBkGold900,
  9.                     ),
  10.                     splashBorderRadius: BorderRadius.circular(
  11.                       10.0.r,
  12.                     ),
  13.                     isScrollable: true,
  14.                     controller: controller,
  15.                     indicatorColor: Theme.of(context).colorScheme.secondary,
  16.                     indicatorWeight: 2.0,
  17.                     unselectedLabelStyle: AltBankTextStyle.caption.copyWith(
  18.                         fontSize: 12.sp, color: AltBankColor.dAltBkBlack900),
  19.                     automaticIndicatorColorAdjustment: true,
  20.                     // unselectedLabelColor: Colors.black,
  21.                     labelColor: Colors.orange,
  22.                     indicatorSize: TabBarIndicatorSize.label,
  23.                     labelPadding: EdgeInsets.only(
  24.                       top: 1.0,
  25.                       left: 7.0.w,
  26.                       right: 7.0.w,
  27.                     ),
  28.                     onTap: (index) {},
  29.  
  30.                     //todo:change subcategories in category impl
  31.  
  32.                     tabs: monthList
  33.                         .map((e) => Padding(
  34.                               padding: EdgeInsets.symmetric(horizontal: 10.0.w),
  35.                               child: Container(
  36.                                 height: 26.h,
  37.                                 width: 50.w,
  38.                                 decoration: BoxDecoration(
  39.                                     color: Colors.grey.shade100,
  40.                                     borderRadius: BorderRadius.circular(10.r)),
  41.                                 child: Tab(
  42.                                   child: Text(
  43.                                     e.toTitleCase(),
  44.                                     style: TextStyle(
  45.                                         fontSize: 12.0.sp,
  46.                                         fontFamily: 'helves',
  47.                                         fontWeight: FontWeight.w600,
  48.                                         color: Colors.black),
  49.                                   ),
  50.                                 ),
  51.                               ),
  52.                             ))
  53.                         .toList()),
  54.               ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement