fix in patient

merge-requests/922/head
Elham Rababh 4 years ago
parent f97b0bee14
commit 9e4a9c4b6a

@ -215,7 +215,6 @@
TargetAttributes = { TargetAttributes = {
97C146ED1CF9000F007C117D = { 97C146ED1CF9000F007C117D = {
CreatedOnToolsVersion = 7.3.1; CreatedOnToolsVersion = 7.3.1;
DevelopmentTeam = 3A359E86ZF;
LastSwiftMigration = 1100; LastSwiftMigration = 1100;
}; };
}; };
@ -416,7 +415,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 4; CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = 3A359E86ZF; DEVELOPMENT_TEAM = "";
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
@ -551,7 +550,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 4; CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = 3A359E86ZF; DEVELOPMENT_TEAM = "";
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",
@ -582,7 +581,7 @@
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/RunnerRelease.entitlements; CODE_SIGN_ENTITLEMENTS = Runner/RunnerRelease.entitlements;
CURRENT_PROJECT_VERSION = 4; CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = 3A359E86ZF; DEVELOPMENT_TEAM = "";
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
"$(inherited)", "$(inherited)",

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<Scheme <Scheme
LastUpgradeVersion = "1020" LastUpgradeVersion = "1310"
version = "1.3"> version = "1.3">
<BuildAction <BuildAction
parallelizeBuildables = "YES" parallelizeBuildables = "YES"
@ -27,8 +27,6 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"> shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion> <MacroExpansion>
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
@ -38,8 +36,8 @@
ReferencedContainer = "container:Runner.xcodeproj"> ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference> </BuildableReference>
</MacroExpansion> </MacroExpansion>
<AdditionalOptions> <Testables>
</AdditionalOptions> </Testables>
</TestAction> </TestAction>
<LaunchAction <LaunchAction
buildConfiguration = "Debug" buildConfiguration = "Debug"
@ -61,8 +59,6 @@
ReferencedContainer = "container:Runner.xcodeproj"> ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference> </BuildableReference>
</BuildableProductRunnable> </BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction> </LaunchAction>
<ProfileAction <ProfileAction
buildConfiguration = "Profile" buildConfiguration = "Profile"

@ -112,6 +112,7 @@ class _InPatientScreenState extends State<InPatientScreen>
Expanded( Expanded(
child: Scaffold( child: Scaffold(
extendBodyBehindAppBar: false, extendBodyBehindAppBar: false,
appBar: PreferredSize( appBar: PreferredSize(
preferredSize: Size.fromHeight( preferredSize: Size.fromHeight(
MediaQuery.of(context).size.height * 0.070), MediaQuery.of(context).size.height * 0.070),
@ -124,26 +125,28 @@ class _InPatientScreenState extends State<InPatientScreen>
width: 0.5), //width: 0.7 width: 0.5), //width: 0.7
), ),
color: Colors.white), color: Colors.white),
child: Center( child: Container(
margin: EdgeInsets.only(top: 9),
child: TabBar( child: TabBar(
isScrollable: false, isScrollable: false,
controller: _tabController, controller: _tabController,
indicatorColor: Colors.transparent, indicatorColor: Colors.red,
indicatorWeight: 1.0, indicatorWeight: 0.001,
indicatorSize: TabBarIndicatorSize.tab, indicator:BoxDecoration(),
labelColor: Theme.of(context).primaryColor, // indicatorSize: TabBarIndicatorSize.tab,
// labelColor: Theme.of(context).primaryColor,
labelPadding: EdgeInsets.only( labelPadding: EdgeInsets.only(
top: 0, left: 0, right: 0, bottom: 0), top: 0, left: 0, right: 0, bottom: 0),
unselectedLabelColor: Colors.grey[800], // unselectedLabelColor: Colors.grey[800],
tabs: [ tabs: [
tabWidget(screenSize, _activeTab == 0, tabWidget(screenSize, _activeTab == 0,
TranslationBase.of(context).inPatientAll, TranslationBase.of(context).inPatientAll,
counter: model.inPatientList.length), counter: model.inPatientList.length, isFirst: true),
tabWidget(screenSize, _activeTab == 1, tabWidget(screenSize, _activeTab == 1,
TranslationBase.of(context).myInPatientTitle, TranslationBase.of(context).myInPatientTitle,
counter: model.myIinPatientList.length), counter: model.myIinPatientList.length, isMiddle: true),
tabWidget(screenSize, _activeTab == 2, tabWidget(screenSize, _activeTab == 2,
TranslationBase.of(context).discharged), TranslationBase.of(context).discharged, isLast:true),
], ],
), ),
), ),
@ -193,23 +196,23 @@ class _InPatientScreenState extends State<InPatientScreen>
} }
Widget tabWidget(Size screenSize, bool isActive, String title, Widget tabWidget(Size screenSize, bool isActive, String title,
{int counter = -1}) { {int counter = -1,
bool isFirst = false,
bool isMiddle = false,
bool isLast = false,}) {
return Center( return Center(
child: Container( child: Container(
height: screenSize.height * 0.070, height: screenSize.height * 0.060,
decoration: TextFieldsUtils.containerBorderDecoration( decoration:Helpers.getBoxTabsBoxDecoration(isActive: isActive,isFirst: isFirst, isMiddle: isMiddle, isLast: isLast),
isActive ? AppGlobal.appRedColor : Color(0xFFEAEAEA),
isActive ? AppGlobal.appRedColor : Color(0xFFEAEAEA),
borderRadius: isActive?4:0,
borderWidth: 0),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
AppText( AppText(
title, title,
fontSize: SizeConfig.textMultiplier * 1.5, fontSize: SizeConfig.textMultiplier * 1.5,
color: isActive ? Colors.white : Color(0xFF2B353E), color: isActive ? Colors.white : AppGlobal.appTextColor,
fontWeight: FontWeight.w700, letterSpacing: -0.48,
fontWeight: FontWeight.w600,
), ),
if (counter != -1) if (counter != -1)
Container( Container(
@ -217,7 +220,7 @@ class _InPatientScreenState extends State<InPatientScreen>
width: 15, width: 15,
height: 15, height: 15,
decoration: BoxDecoration( decoration: BoxDecoration(
color: isActive ? Colors.white : Color(0xFFD02127), color: isActive ? Colors.white : AppGlobal.appRedColor,
shape: BoxShape.circle, shape: BoxShape.circle,
), ),
child: Center( child: Center(
@ -225,7 +228,7 @@ class _InPatientScreenState extends State<InPatientScreen>
child: AppText( child: AppText(
"$counter", "$counter",
fontSize: SizeConfig.textMultiplier * 1.5, fontSize: SizeConfig.textMultiplier * 1.5,
color: !isActive ? Colors.white : Color(0xFFD02127), color: !isActive ? Colors.white : AppGlobal.appRedColor,
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
), ),
), ),

@ -188,7 +188,8 @@ class Helpers {
static clearSharedPref() async { static clearSharedPref() async {
await sharedPref.clear(); await sharedPref.clear();
} }
static getCardBoxDecoration(){
static getCardBoxDecoration() {
return BoxDecoration( return BoxDecoration(
borderRadius: BorderRadius.circular(10), borderRadius: BorderRadius.circular(10),
color: Colors.white, color: Colors.white,
@ -328,5 +329,23 @@ class Helpers {
return kpi; return kpi;
} }
static getBoxTabsBoxDecoration(
{
bool isFirst = false,
bool isMiddle = false,
bool isLast = false,
bool isActive = false,
double radius = 6.0
}) {
return BoxDecoration(
color: isActive ? AppGlobal.appRedColor : Color(0xFFEAEAEA),
shape: BoxShape.rectangle,
borderRadius: BorderRadius.only(
topRight: Radius.circular(isActive?isFirst || isMiddle?radius:0:0),
bottomRight: Radius.circular(isActive?isFirst || isMiddle?radius:0:0),
topLeft: Radius.circular(isActive?isLast|| isMiddle?radius:0:0),
bottomLeft: Radius.circular(isActive?isLast || isMiddle?radius:0:0)
),
);
}
} }

Loading…
Cancel
Save