component sizes changed

ipd-changes-for-vida-plus
tahaalam 4 days ago
parent f9584949d2
commit a1391eb458

@ -46,11 +46,11 @@ class PatientProfileHeaderNewDesignAppBar extends StatelessWidget implements Pre
decoration: BoxDecoration(
color: Colors.white,
),
height: height == 0
? isInpatient
? 220
: 200
: height,
// height: height == 0
// ? isInpatient
// ? 220
// : 200
// : height,
child: Container(
padding: EdgeInsets.only(left: 10, right: 10, bottom: 10),
margin: EdgeInsets.only(top: 50),

@ -30,9 +30,9 @@ class _AppDrawerState extends State<AppDrawer> {
Widget build(BuildContext context) {
AuthenticationViewModel authenticationViewModel = Provider.of(context);
projectsProvider = Provider.of(context);
return Container(
color: Colors.white,
child: Drawer(
return Drawer(
backgroundColor: Colors.white,
width: MediaQuery.of(context).size.width *.68,
child: Column(
children: <Widget>[
Expanded(
@ -248,7 +248,6 @@ class _AppDrawerState extends State<AppDrawer> {
)
],
),
),
);
}

@ -32,7 +32,7 @@ class BottomNavigationItem extends StatelessWidget {
Widget build(BuildContext context) {
return Expanded(
child: SizedBox(
height: 70.0,
height:MediaQuery.of(context).size.height *.1,
child: Material(
type: MaterialType.transparency,
child: InkWell(
@ -57,8 +57,9 @@ class BottomNavigationItem extends StatelessWidget {
SizedBox(
height: 15,
),
Container(
child: SvgPicture.asset(
Stack(
children: [
SvgPicture.asset(
svgPath!,
width: SizeConfig.widthMultiplier! * (10),
height: SizeConfig.getHeightMultiplier(
@ -70,27 +71,10 @@ class BottomNavigationItem extends StatelessWidget {
: 7)) *
40,
),
),
SizedBox(
height: 8,
),
Expanded(
child: AppText(name ?? "",
textAlign: TextAlign.center,
fontSize:
SizeConfig.getTextMultiplierBasedOnWidth() *
2.5,
letterSpacing: -0.24,
color: AppGlobal.appTextColor,
fontWeight: FontWeight.w600) //#989898,
),
],
),
if (currentIndex == 3 &&
dashboardViewModel!.notRepliedCount != 0)
Positioned(
right: 18.0,
bottom: 40.0,
top:1, right:1,
child: badge.Badge(
badgeAnimation:
badge.BadgeAnimation.fade(toAnimate: false),
@ -109,6 +93,24 @@ class BottomNavigationItem extends StatelessWidget {
),
),
),
]
),
SizedBox(
height: 8,
),
Expanded(
child: AppText(name ?? "",
textAlign: TextAlign.center,
fontSize:
SizeConfig.getTextMultiplierBasedOnWidth() *
2.5,
letterSpacing: -0.24,
color: AppGlobal.appTextColor,
fontWeight: FontWeight.w600) //#989898,
),
],
),
],
),
),

Loading…
Cancel
Save