saved login fixes & design changes.

updare-to-3.32.sultan
Aamir Muhammad 3 months ago
parent da32bd8df1
commit af2bf1314e

@ -376,7 +376,7 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
sharedPref.remove(REGISTER_DATA_FOR_LOGIIN);
if (data != null) {
SelectDeviceIMEIRES savedData = SelectDeviceIMEIRES.fromJson(data);
Navigator.of(context).pushReplacement(
Navigator.of(context).push(
MaterialPageRoute(
builder: (BuildContext context) => SavedLogin(savedData),
),
@ -391,7 +391,7 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
if (value != null) {
SelectDeviceIMEIRES savedData = SelectDeviceIMEIRES.fromJson(data);
setUserValues(value);
Navigator.of(context).pushReplacement(
Navigator.of(context).push(
MaterialPageRoute(
builder: (BuildContext context) => SavedLogin(savedData),
),

@ -66,7 +66,7 @@ class _SavedLogin extends State<SavedLogin> {
appBarTitle: TranslationBase.of(context).register,
isShowDecPage: false,
isShowAppBar: true,
isshowBackButton: false,
isshowBackButton: true,
showNewAppBar: true,
backgroundColor: Color(0xffF8F8F8),
showNewAppBarTitle: false,

@ -395,11 +395,15 @@ class NewAppBarWidget extends StatelessWidget implements PreferredSizeWidget {
backgroundColor: showTitle ? Colors.white : Colors.transparent,
// backgroundColor: Colors.red,
// automaticallyImplyLeading: false,
leading: isShowBackButton
leading: isShowBackButton && showSavedLoginBar
? ArrowBack(
onTap: onTap,
)
: null,
).withHorizontalPadding(24)
: isShowBackButton
? ArrowBack(
onTap: onTap,
)
: null,
// centerTitle: showCenterLogo,
titleSpacing: -8,
// centerTitle: showSavedLoginBar,
@ -408,11 +412,11 @@ class NewAppBarWidget extends StatelessWidget implements PreferredSizeWidget {
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.start,
children: [
SvgPicture.asset(
'assets/images/svg/card_user.svg',
height: 32,
width: 32,
).withHorizontalPadding(24),
// SvgPicture.asset(
// 'assets/images/svg/card_user.svg',
// height: 32,
// width: 32,
// ).withHorizontalPadding(24),
if (showCenterLogo) Expanded(child: SvgPicture.asset('assets/images/svg/habiblogo.svg', height: 32, width: 32)),
if (showDropDown! && isShowLanguageChanger)
Directionality(

Loading…
Cancel
Save