|
|
|
|
@ -81,38 +81,33 @@ class _DoctorReplyScreenState extends State<DoctorReplyScreen>
|
|
|
|
|
preferredSize: Size.fromHeight(
|
|
|
|
|
MediaQuery.of(context).size.height * 0.070),
|
|
|
|
|
child: Container(
|
|
|
|
|
height: MediaQuery.of(context).size.height * 0.070,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
border: Border(
|
|
|
|
|
bottom: BorderSide(
|
|
|
|
|
color: Theme.of(context).dividerColor,
|
|
|
|
|
width: 0.5), //width: 0.7
|
|
|
|
|
child: TabBar(
|
|
|
|
|
isScrollable: false,
|
|
|
|
|
controller: _tabController,
|
|
|
|
|
indicatorColor: Colors.transparent,
|
|
|
|
|
indicatorWeight: 1.0,
|
|
|
|
|
indicatorSize: TabBarIndicatorSize.tab,
|
|
|
|
|
labelColor: Theme.of(context).primaryColor,
|
|
|
|
|
labelPadding: EdgeInsets.only(
|
|
|
|
|
top: 0, left: 0, right: 0, bottom: 0),
|
|
|
|
|
unselectedLabelColor: Colors.grey[800],
|
|
|
|
|
tabs: [
|
|
|
|
|
tabWidget(
|
|
|
|
|
screenSize,
|
|
|
|
|
_activeTab == 0,
|
|
|
|
|
/// TODO Elham* Add Tran
|
|
|
|
|
"Not Replied",
|
|
|
|
|
isFirst: true, context: context
|
|
|
|
|
),
|
|
|
|
|
color: Colors.white),
|
|
|
|
|
child: Center(
|
|
|
|
|
child: TabBar(
|
|
|
|
|
isScrollable: false,
|
|
|
|
|
controller: _tabController,
|
|
|
|
|
indicatorColor: Colors.transparent,
|
|
|
|
|
indicatorWeight: 1.0,
|
|
|
|
|
indicatorSize: TabBarIndicatorSize.tab,
|
|
|
|
|
labelColor: Theme.of(context).primaryColor,
|
|
|
|
|
labelPadding: EdgeInsets.only(
|
|
|
|
|
top: 0, left: 0, right: 0, bottom: 0),
|
|
|
|
|
unselectedLabelColor: Colors.grey[800],
|
|
|
|
|
tabs: [
|
|
|
|
|
tabWidget(
|
|
|
|
|
screenSize,
|
|
|
|
|
_activeTab == 0,
|
|
|
|
|
"Not Replied",
|
|
|
|
|
),
|
|
|
|
|
tabWidget(
|
|
|
|
|
screenSize,
|
|
|
|
|
_activeTab == 1,
|
|
|
|
|
TranslationBase.of(context).all,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
tabWidget(
|
|
|
|
|
screenSize,
|
|
|
|
|
_activeTab == 1,
|
|
|
|
|
|
|
|
|
|
TranslationBase.of(context).all,
|
|
|
|
|
isLast: true,
|
|
|
|
|
context: context
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -140,44 +135,22 @@ class _DoctorReplyScreenState extends State<DoctorReplyScreen>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget tabWidget(Size screenSize, bool isActive, String title,
|
|
|
|
|
{int counter = -1}) {
|
|
|
|
|
{int counter = -1, bool isFirst = false,
|
|
|
|
|
bool isMiddle = false,
|
|
|
|
|
bool isLast = false,context}) {
|
|
|
|
|
return Center(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: screenSize.height * 0.070,
|
|
|
|
|
decoration: TextFieldsUtils.containerBorderDecoration(
|
|
|
|
|
isActive ? Color(0xFFD02127 /*B8382B*/) : Color(0xFFEAEAEA),
|
|
|
|
|
isActive ? Color(0xFFD02127) : Color(0xFFEAEAEA),
|
|
|
|
|
borderRadius: 4,
|
|
|
|
|
borderWidth: 0),
|
|
|
|
|
height: Helpers.getTabHeight(context),
|
|
|
|
|
decoration: Helpers.getBoxTabsBoxDecoration(isActive: isActive,isFirst: isFirst, isMiddle: isMiddle, isLast: isLast),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
title,
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.5,
|
|
|
|
|
color: isActive ? Colors.white : Color(0xFF2B353E),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
Helpers.getTabText(title: title, isActive: isActive),
|
|
|
|
|
if (counter != -1)
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.all(4),
|
|
|
|
|
width: 15,
|
|
|
|
|
height: 15,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: isActive ? Colors.white : Color(0xFFD02127),
|
|
|
|
|
shape: BoxShape.circle,
|
|
|
|
|
),
|
|
|
|
|
child: Center(
|
|
|
|
|
child: FittedBox(
|
|
|
|
|
child: AppText(
|
|
|
|
|
"$counter",
|
|
|
|
|
fontSize: SizeConfig.textMultiplier * 1.5,
|
|
|
|
|
color: !isActive ? Colors.white : Color(0xFFD02127),
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Helpers.getTabCounter(
|
|
|
|
|
isActive: isActive,
|
|
|
|
|
counter:counter
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|