123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- import 'package:flutter/material.dart';
- import 'package:flutter/cupertino.dart';
- import 'package:package_info/package_info.dart';
- import 'package:ysairplane2/base/YSBase.dart';
- import 'package:ysairplane2/tools/YSTools.dart';
- import 'YSWebLoad.dart';
- class YSAboutUs extends StatefulWidget {
- @override
- _YSAboutUsState createState() => _YSAboutUsState();
- }
- class _YSAboutUsState extends State<YSAboutUs> {
- String _versionStr = '';
- @override
- void initState() {
- _getVersion();
- super.initState();
- }
- _getVersion() async{
- PackageInfo packageInfo = await PackageInfo.fromPlatform();
- _versionStr = packageInfo.version;
- setState(() {
- });
- }
- @override
- Widget build(BuildContext context) {
- return YSBase(
- ystitle: '',
- yschild: Column(
- children: [
- Container(
- height: MediaQuery.of(context).size.height-MediaQuery.of(context).padding.top-44-hsp(300),
- width: MediaQuery.of(context).size.width,
- alignment: Alignment.center,
- child: Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- Container(
- height: hsp(120),
- width: hsp(120),
- decoration: BoxDecoration(
- borderRadius: BorderRadius.all(Radius.circular(hsp(24))),
- image: DecorationImage(
- image: AssetImage('lib/images/icon.png')
- )
- ),
- ),
- Container(
- margin: EdgeInsets.only(top: hsp(70),bottom: hsp(20)),
- child: Text('智慧通航商旅app软件',style: TextStyle(fontSize: zsp(40),color: Color(0xFF161616),fontWeight: FontWeight.bold),),
- ),
- Text('Version $_versionStr',style: TextStyle(fontSize: zsp(30),color: Color(0xFF161616)),),
- GestureDetector(
- onTap: (){
- Navigator.of(context).push(
- CupertinoPageRoute(
- builder: (context){
- return YSWebLoad();
- }
- )
- );
- },
- child: Container(
- margin: EdgeInsets.only(top: hsp(140)),
- width: MediaQuery.of(context).size.width-hsp(140),
- height: hsp(100),
- decoration: BoxDecoration(
- border: Border(top: BorderSide(width: 0.5,color: Color(0xFFE5E5E5)),bottom: BorderSide(width: 0.5,color: Color(0xFFE5E5E5)))
- ),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- children: [
- Text('产品简介',style: TextStyle(fontSize: zsp(32),color: Color(0xFF161616)),),
- Icon(Icons.keyboard_arrow_right,size: hsp(50),color: Color(0xFF999999),)
- ],
- ),
- ),
- )
- ],
- ),
- ),
- Container(
- height: hsp(300),
- width: MediaQuery.of(context).size.width,
- padding: EdgeInsets.all(hsp(30)),
- alignment: Alignment.center,
- child: Column(
- mainAxisSize: MainAxisSize.min,
- children: [
- GestureDetector(
- onTap: (){
- Navigator.of(context).push(
- CupertinoPageRoute(
- builder: (context){
- return YSWebLoad(type: 1,);
- }
- )
- );
- },
- child: Text('《软件许可及服务协议》',style: TextStyle(fontSize: zsp(24),color: Color(0xFF5B6A91)),),
- ),
- GestureDetector(
- onTap: (){
- Navigator.of(context).push(
- CupertinoPageRoute(
- builder: (context){
- return YSWebLoad(type: 2,);
- }
- )
- );
- },
- child: Container(
- margin: EdgeInsets.only(top: hsp(10)),
- child: Text('《隐私政策》',style: TextStyle(fontSize: zsp(24),color: Color(0xFF5B6A91)),),
- ),
- ),
- GestureDetector(
- onTap: (){
- Navigator.of(context).push(
- CupertinoPageRoute(
- builder: (context){
- return YSWebLoad(type: 3,);
- }
- )
- );
- },
- child: Container(
- margin: EdgeInsets.only(top: hsp(10),bottom: hsp(40)),
- child: Text('《用户协议》',style: TextStyle(fontSize: zsp(24),color: Color(0xFF5B6A91)),),
- ),
- ),
- Text('智慧通航商旅app软件 版权所有\nCopyright @ 2020-${DateTime.now().year} shunxiangshanglv. All Rights Reserved',
- style: TextStyle(fontSize: zsp(23),color: Color(0xFFB3B3B3)),textAlign: TextAlign.center,),
- ],
- ),
- )
- ],
- ),
- );
- }
- }
|