import 'package:flutter/material.dart'; import 'package:responsive_builder/responsive_builder.dart'; import '../constants.dart'; import '../generated/l10n.dart'; import '../widgets/desktop/desktop_change_password.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_password.dart'; class ChangePassword extends StatelessWidget { final _scaffoldKey = GlobalKey(); @override Widget build(BuildContext context) { return ResponsiveBuilder( builder: (context, sizingInformation) => Scaffold( key: _scaffoldKey, appBar: MiniNavigationBar( title: S.of(context).change_password, back: true, breadCrumbs: [ BreadCrumb(S.of(context).change_password, null), ], breadCrumbHeight: sizingInformation.deviceScreenType == DeviceScreenType.mobile ? null : Constants.BREADCRUMB_HEIGHT, ), drawer: null, body: ScreenTypeLayout.builder( mobile: (context) => MobileChangePassword(), tablet: (context) => DesktopChangePassword(), desktop: (context) => DesktopChangePassword(), ), bottomNavigationBar: ScreenTypeLayout.builder( mobile: (context) => MobileBottomNav(currentIndex: 0,), tablet: (context) => BottomNav(), desktop: (context) => BottomNav(), ), ), ); } }