63 lines
2.0 KiB
Dart
63 lines
2.0 KiB
Dart
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<AboutPage> {
|
|
// 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: <Widget>[
|
|
Center(child: Image.asset('assets/images/logo.png', height: 32)),
|
|
SizedBox(
|
|
height: 50,
|
|
),
|
|
Text(
|
|
AppLocalizations.of(context)!.translate('i18n_label_app_version'),
|
|
style: TextStyle(fontSize: 14, color: CHARCOAL),
|
|
),
|
|
SizedBox(
|
|
height: 5,
|
|
),
|
|
Text(
|
|
SharedPrefs().appVersion,
|
|
style: TextStyle(fontSize: 14, color: CHARCOAL),
|
|
),
|
|
],
|
|
),
|
|
));
|
|
}
|
|
}
|