Files
Traders_Circuit/lib/Utils/Common/CommonTabBar.dart
Rajshinde046 6fd6ea9535 color change
2024-05-10 13:19:19 +05:30

45 lines
1.3 KiB
Dart

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class MyTabBar extends StatelessWidget {
// Set the desired height
@override
Widget build(BuildContext context) {
return Container(
decoration: BoxDecoration(
border: Border.all(
color: Color(0Xff4A73FB).withOpacity(0.6),
),
borderRadius: BorderRadius.circular(8.r),
),
padding: const EdgeInsets.all(10.0), // Set the desired padding
child: TabBar(
indicator: BoxDecoration(
color: const Color(0xff00C236),
borderRadius: BorderRadius.circular(5),
),
isScrollable: false,
dividerColor: Colors.transparent,
labelStyle: TextStyle(
fontSize: 18.sp,
color: Colors.white,
fontWeight: FontWeight.w500,
fontFamily: 'hiragino'),
indicatorSize: TabBarIndicatorSize.tab,
indicatorColor: const Color(0xFFFFFFFF),
labelColor: Colors.white,
unselectedLabelColor: const Color(0xffFFFFFF),
overlayColor: MaterialStateProperty.all(const Color(0xFFFFFFFF)),
tabs: const [
Tab(
text: 'Active Calls',
),
Tab(
text: 'Exited Calls',
),
]),
);
}
}