Files
flutter_wisetronic/lib/pages/change_mobile_or_email.dart
2026-07-12 04:33:48 +08:00

48 lines
1.8 KiB
Dart

import 'package:flutter/material.dart';
import 'package:responsive_builder/responsive_builder.dart';
import '../constants.dart';
import '../generated/l10n.dart';
import '../widgets/desktop/desktop_change_mobile_or_email.dart';
import '../widgets/general/bottom_nav.dart';
import '../widgets/general/breadcrumbs.dart';
import '../widgets/general/navigationbar.dart';
import '../widgets/mobile/MobileBottomNav.dart';
import '../widgets/mobile/mobile_change_mobile_or_email.dart';
class ChangeMobileOrEmail extends StatelessWidget {
final bool isMobile;
const ChangeMobileOrEmail(this.isMobile, {Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return ResponsiveBuilder(
builder: (context, sizingInformation) =>
Scaffold(
appBar: MiniNavigationBar(
title: isMobile ? S.of(context).change_mobile : S.of(context).change_email,
back: true,
breadCrumbs: [
BreadCrumb(isMobile ? S.of(context).change_mobile : S.of(context).change_email, null),
],
breadCrumbHeight: sizingInformation.deviceScreenType == DeviceScreenType.mobile ? null : Constants.BREADCRUMB_HEIGHT,
),
drawer: null,
body: ScreenTypeLayout.builder(
mobile: (context) => MobileChangeMobileOrEmail(isMobile),
tablet: (context) => DesktopChangeMobileOrEmail(isMobile),
desktop: (context) => DesktopChangeMobileOrEmail(isMobile),
),
bottomNavigationBar: ScreenTypeLayout.builder(
mobile: (context) => MobileBottomNav(currentIndex: 0,),
tablet: (context) => BottomNav(),
desktop: (context) => BottomNav(),
),
),
);
}
}