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( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
), ),
height: height == 0 // height: height == 0
? isInpatient // ? isInpatient
? 220 // ? 220
: 200 // : 200
: height, // : height,
child: Container( child: Container(
padding: EdgeInsets.only(left: 10, right: 10, bottom: 10), padding: EdgeInsets.only(left: 10, right: 10, bottom: 10),
margin: EdgeInsets.only(top: 50), margin: EdgeInsets.only(top: 50),

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

@ -32,7 +32,7 @@ class BottomNavigationItem extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Expanded( return Expanded(
child: SizedBox( child: SizedBox(
height: 70.0, height:MediaQuery.of(context).size.height *.1,
child: Material( child: Material(
type: MaterialType.transparency, type: MaterialType.transparency,
child: InkWell( child: InkWell(
@ -57,8 +57,9 @@ class BottomNavigationItem extends StatelessWidget {
SizedBox( SizedBox(
height: 15, height: 15,
), ),
Container( Stack(
child: SvgPicture.asset( children: [
SvgPicture.asset(
svgPath!, svgPath!,
width: SizeConfig.widthMultiplier! * (10), width: SizeConfig.widthMultiplier! * (10),
height: SizeConfig.getHeightMultiplier( height: SizeConfig.getHeightMultiplier(
@ -70,27 +71,10 @@ class BottomNavigationItem extends StatelessWidget {
: 7)) * : 7)) *
40, 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 && if (currentIndex == 3 &&
dashboardViewModel!.notRepliedCount != 0) dashboardViewModel!.notRepliedCount != 0)
Positioned( Positioned(
right: 18.0, top:1, right:1,
bottom: 40.0,
child: badge.Badge( child: badge.Badge(
badgeAnimation: badgeAnimation:
badge.BadgeAnimation.fade(toAnimate: false), 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