import 'package:aiplot/network/NetworkConfig.dart'; import 'package:flutter/material.dart'; import '../../generated/l10n.dart'; class AboutPage extends StatefulWidget { const AboutPage({Key? key}) : super(key: key); @override State createState() => _AboutPageState(); } class _AboutPageState extends State { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( backgroundColor: Colors.white, elevation: 0, title: Row( mainAxisSize: MainAxisSize.min, children: [ Container( margin: const EdgeInsets.only(right: 10), child: Image( width: 23, height: 23, image: AssetImage('assets/images/ic_title.png'), ), ), Text( S.of(context).About, style: TextStyle(color: Colors.black, fontSize: 20), ), ], ), centerTitle: true, leading: IconButton( icon: ImageIcon(AssetImage('assets/images/ic_return.png')), color: Colors.black, onPressed: () { Navigator.pop(context); }), ), body: Stack( alignment: Alignment.center, children: [ Positioned( top: 20, child: Container( child: Image( width: 60, image: AssetImage('assets/images/ic_title.png'), ), ), ), Positioned( top: 120, child: Container( child: Text("Version${NetworkConfig.Version}"), ), ), ], ), ); } }