29 lines
931 B
Dart
29 lines
931 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
class CommonTabBar extends StatelessWidget {
|
|
// Set the desired height
|
|
|
|
final List<Tab> tabs;
|
|
const CommonTabBar({super.key, required this.tabs,});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return TabBar(
|
|
|
|
dividerColor: const Color(0xFFFFFFFF).withOpacity(0.07),
|
|
labelStyle: TextStyle(
|
|
fontSize: 14.sp,
|
|
color: const Color(0xFFFCFCFC),
|
|
fontWeight: FontWeight.w400,
|
|
fontFamily: 'Helvetica'),
|
|
indicatorSize: TabBarIndicatorSize.tab,
|
|
indicatorColor: const Color(0xFFD90B2E),
|
|
// labelColor: Colors.white,
|
|
indicatorWeight: 2.h,
|
|
dividerHeight: 2.h,
|
|
unselectedLabelColor: const Color(0xFFFCFCFC),
|
|
overlayColor: MaterialStateProperty.all(const Color(0xFFD90B2E)),
|
|
tabs: tabs);
|
|
}
|
|
} |