1import 'package:flutter/material.dart';
2import 'package:flutter_screenutil/flutter_screenutil.dart';
4import '../theme/color_palette.dart';
14 required this.onTabSelected,
15 required this.firstTabName,
16 required this.secondTabName,
17 this.initialSelection =
true,
24class _TabSelectorState
extends State<TabSelector> {
37 widget.onTabSelected(value);
41 Widget
build(BuildContext context) {
43 decoration: BoxDecoration(
49 offset:
const Offset(0, 5),
61 padding: EdgeInsets.symmetric(vertical: 16.sp),
62 decoration: BoxDecoration(
73 textAlign: TextAlign.center,
74 style: Theme.of(context).textTheme.titleSmall!.copyWith(
76 fontWeight: FontWeight.w600,
86 padding: EdgeInsets.symmetric(vertical: 16.sp),
87 decoration: BoxDecoration(
98 textAlign: TextAlign.center,
99 style: Theme.of(context).textTheme.titleSmall!.copyWith(
101 fontWeight: FontWeight.w600,
override void initState()
class App extends StatefulWidget build(BuildContext context)
void _toggleTab(bool value)
class TabSelector extends StatefulWidget isFirstTabSelected
style Text( '${ 'scheduling.reference'.tr()}:${collection.internalCode}', style:Theme.of(context).textTheme.bodySmall,)