You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.3 KiB
80 lines
2.3 KiB
import 'package:flutter/cupertino.dart'; |
|
import 'package:flutter/material.dart'; |
|
import 'package:huixiang/generated/l10n.dart'; |
|
|
|
class AboutPage extends StatefulWidget { |
|
@override |
|
State<StatefulWidget> createState() { |
|
return _AboutPage(); |
|
} |
|
} |
|
|
|
class _AboutPage extends State<AboutPage>{ |
|
@override |
|
Widget build(BuildContext context) { |
|
return Scaffold( |
|
appBar: AppBar( |
|
title: Text( |
|
S.of(context).guanyu, |
|
style: TextStyle( |
|
color: Colors.black, |
|
fontWeight: FontWeight.bold, |
|
), |
|
), |
|
centerTitle: false, |
|
backgroundColor: Color(0xFFF7F7F7), |
|
elevation: 0, |
|
leading: GestureDetector( |
|
onTap: () { |
|
Navigator.of(context).pop(); |
|
}, |
|
child: Container( |
|
alignment: Alignment.centerRight, |
|
margin: EdgeInsets.only(left: 10), |
|
padding: EdgeInsets.all(6), |
|
child: Icon( |
|
Icons.arrow_back_ios, |
|
color: Colors.black, |
|
size: 24, |
|
), |
|
), |
|
), |
|
titleSpacing: 2, |
|
leadingWidth: 56, |
|
), |
|
body:Stack( |
|
children: [ |
|
Container( |
|
decoration: new BoxDecoration( |
|
border: Border( |
|
bottom: BorderSide( |
|
color: Color(0xffF7F7F7), width: 0.0)), |
|
color: Color(0xffF7F7F7), |
|
), |
|
padding: EdgeInsets.only(top: 125), |
|
alignment: Alignment.center, |
|
child: Column( |
|
children: [ |
|
Image.asset("assets/image/icon_about_logo.png", |
|
width: 130, |
|
height: 130,), |
|
Padding(padding: EdgeInsets.only(top: 32,bottom: 5),child: |
|
Text("一心回乡",style: TextStyle(fontSize: 30,color: Color(0xff32A060),),),), |
|
|
|
Text("过健康有机生活",style: TextStyle(fontSize: 16,color: Color(0xffB2B2B2),),) |
|
], |
|
), |
|
), |
|
Container( |
|
margin: EdgeInsets.only(bottom: 83), |
|
alignment: Alignment.bottomCenter, |
|
child: Text("版本:1.0.0",style: TextStyle( |
|
fontSize: 16,color: Color(0XFF868686), |
|
),), |
|
), |
|
], |
|
), |
|
); |
|
} |
|
|
|
} |