97 lines
2.8 KiB
Dart
97 lines
2.8 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:package_info_plus/package_info_plus.dart';
|
|
import 'package:rkm/utils/color_palette.dart';
|
|
import 'package:rkm/utils/const_variable.dart';
|
|
import 'package:rkm/widgets/button_default.dart';
|
|
import 'package:rkm/widgets/text_default.dart';
|
|
|
|
class AboutScreen extends StatefulWidget {
|
|
|
|
@override
|
|
State<AboutScreen> createState() => _AboutScreenState();
|
|
}
|
|
|
|
class _AboutScreenState extends State<AboutScreen> {
|
|
@override
|
|
|
|
|
|
String version = '';
|
|
|
|
getVersion()async{
|
|
await PackageInfo.fromPlatform().then((value){
|
|
setState(() {
|
|
version =value.version;
|
|
});
|
|
});
|
|
}
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
double width = MediaQuery.of(context).size.width;
|
|
|
|
getVersion();
|
|
|
|
return Scaffold(
|
|
bottomSheet: Container(
|
|
padding: EdgeInsets.all(5),
|
|
color: ColorPalette.appBar,
|
|
child: Row(
|
|
children: [
|
|
TextDefault(text: 'www.rkmsistemas.com.br',color: ColorPalette.white,),
|
|
Spacer(),
|
|
ButtonDefault(
|
|
onPressed:()=> Navigator.pop(context),
|
|
title: 'Voltar',
|
|
borderColor: ColorPalette.appBar,
|
|
textColor: ColorPalette.white,
|
|
)
|
|
],
|
|
),
|
|
),
|
|
body: Container(
|
|
width: double.infinity,
|
|
height: double.infinity,
|
|
decoration: ConstVariable().backgroundGradient,
|
|
child: Container(
|
|
padding: EdgeInsets.symmetric(vertical: 70),
|
|
child: Column(
|
|
children: [
|
|
Image.asset('assets/images/logo.PNG',width: width*0.5,),
|
|
Padding(
|
|
padding: const EdgeInsets.symmetric(vertical: 10.0),
|
|
child: TextDefault(
|
|
text: 'HOMOLOGAÇÃO',
|
|
color: ColorPalette.red,
|
|
fontSize: 30,
|
|
fontWeigth: FontWeight.bold,
|
|
),
|
|
),
|
|
Padding(
|
|
padding: const EdgeInsets.symmetric(vertical: 5.0),
|
|
child: TextDefault(
|
|
text: 'Versão $version',
|
|
color: ColorPalette.black54,
|
|
fontSize: 30,
|
|
fontWeigth: FontWeight.bold,
|
|
),
|
|
),
|
|
Padding(
|
|
padding: const EdgeInsets.symmetric(vertical: 5.0),
|
|
child: TextDefault(
|
|
text: 'RKM Sistemas Ltda.\n\n'
|
|
'(19) 2532-2668\n\n'
|
|
'(19) 2532-2669',
|
|
textAlign: TextAlign.center,
|
|
color: ColorPalette.black54,
|
|
fontSize: 20,
|
|
fontWeigth: FontWeight.bold,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|