import 'package:mobdr/cubit/language/app_localizations.dart'; import 'package:mobdr/config/constant.dart'; import 'package:mobdr/config/global_style.dart'; import 'package:mobdr/service/shared_prefs.dart'; import 'package:mobdr/ui/reusable/reusable_widget.dart'; import 'package:flutter/material.dart'; class AboutPage extends StatefulWidget { @override _AboutPageState createState() => _AboutPageState(); } class _AboutPageState extends State { // initialize reusable widget final _reusableWidget = ReusableWidget(); @override void initState() { super.initState(); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( iconTheme: IconThemeData( color: GlobalStyle.appBarIconThemeColor, ), elevation: GlobalStyle.appBarElevation, title: Text( AppLocalizations.of(context)!.translate('i18n_menu_about'), style: GlobalStyle.appBarTitle, ), backgroundColor: GlobalStyle.appBarBackgroundColor, systemOverlayStyle: GlobalStyle.appBarSystemOverlayStyle, bottom: _reusableWidget.bottomAppBar(), ), body: Container( child: Column( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: [ Center(child: Image.asset('assets/images/logo.png', height: 32)), SizedBox( height: 50, ), Text( 'App Version', style: TextStyle(fontSize: 14, color: CHARCOAL), ), SizedBox( height: 5, ), Text( SharedPrefs().appVersion, style: TextStyle(fontSize: 14, color: CHARCOAL), ), ], ), )); } }