2024-03-21 00:11:02 -07:00
|
|
|
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(0Xff3A3A3A)),
|
|
|
|
|
borderRadius: BorderRadius.circular(8.r),
|
|
|
|
|
),
|
|
|
|
|
padding: const EdgeInsets.all(10.0), // Set the desired padding
|
|
|
|
|
child: TabBar(
|
|
|
|
|
indicator: BoxDecoration(
|
|
|
|
|
color: const Color(0xff6C0000),
|
|
|
|
|
borderRadius: BorderRadius.circular(5),
|
|
|
|
|
),
|
|
|
|
|
dividerColor: Colors.transparent,
|
|
|
|
|
labelStyle: TextStyle(
|
|
|
|
|
fontSize: 18.sp,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
2024-04-04 11:45:15 +05:30
|
|
|
fontFamily: 'hiragino'),
|
2024-03-21 00:11:02 -07:00
|
|
|
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',
|
|
|
|
|
),
|
|
|
|
|
]),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|