-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
432 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:package_info/package_info.dart'; | ||
|
||
class AboutPage extends StatefulWidget { | ||
@override | ||
_AboutPageState createState() => _AboutPageState(); | ||
} | ||
|
||
class _AboutPageState extends State<AboutPage> { | ||
String _version = 'Loading...'; | ||
|
||
@override | ||
void initState() { | ||
super.initState(); | ||
_fetchPackageInfo(); | ||
} | ||
|
||
Future<void> _fetchPackageInfo() async { | ||
PackageInfo packageInfo = await PackageInfo.fromPlatform(); | ||
setState(() { | ||
_version = packageInfo.version; | ||
}); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: AppBar( | ||
title: const Text('About'), | ||
leading: IconButton( | ||
icon: const Icon(Icons.arrow_back), | ||
onPressed: () => Navigator.pop(context), | ||
), | ||
), | ||
body: Padding( | ||
padding: const EdgeInsets.all(16.0), | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: <Widget>[ | ||
const Center( | ||
child: CircleAvatar( | ||
radius: 60, | ||
backgroundImage: AssetImage( | ||
'assets/images/clock.png'), // Replace with your app logo | ||
), | ||
), | ||
SizedBox(height: 24), | ||
const Text( | ||
'SVP', | ||
style: TextStyle( | ||
fontSize: 28, | ||
fontWeight: FontWeight.bold, | ||
), | ||
), | ||
const SizedBox(height: 8), | ||
Text( | ||
'Version $_version', | ||
style: TextStyle( | ||
fontSize: 18, | ||
color: Colors.grey[600], | ||
), | ||
), | ||
const SizedBox(height: 16), | ||
const Divider(), | ||
const SizedBox(height: 16), | ||
const Text( | ||
'Finance app', | ||
style: TextStyle( | ||
fontSize: 20, | ||
fontWeight: FontWeight.bold, | ||
), | ||
), | ||
const SizedBox(height: 8), | ||
const Text( | ||
'A finance based app to manage the products and sell the prducts', | ||
style: TextStyle(fontSize: 16), | ||
), | ||
const SizedBox(height: 24), | ||
const Text( | ||
'SKBD', | ||
style: TextStyle( | ||
fontSize: 20, | ||
fontWeight: FontWeight.bold, | ||
), | ||
), | ||
const SizedBox(height: 8), | ||
const Text( | ||
'Subodh vet pharma', | ||
style: TextStyle(fontSize: 16), | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.