-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
10 changed files
with
216 additions
and
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import 'package:e1547/appinfo.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
import 'package:url_launcher/url_launcher.dart' as url; | ||
|
||
class AboutPage extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
AppBar appBarWidget() { | ||
return new AppBar( | ||
title: new Text('About'), | ||
leading: IconButton( | ||
icon: Icon(Icons.arrow_back), | ||
onPressed: () => Navigator.pop(context), | ||
), | ||
actions: <Widget>[ | ||
IconButton( | ||
icon: Icon(Icons.update), | ||
onPressed: () async => url.launch(github), | ||
), | ||
], | ||
); | ||
} | ||
|
||
Widget body() { | ||
return new Row(children: [ | ||
new Flexible( | ||
child: new Center( | ||
child: new Padding( | ||
padding: EdgeInsets.only(bottom: 100), | ||
child: new Column( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
crossAxisAlignment: CrossAxisAlignment.center, | ||
children: <Widget>[ | ||
const CircleAvatar( | ||
backgroundImage: const AssetImage('assets/icon/paw.png'), | ||
radius: 44.0, | ||
), | ||
new Padding( | ||
padding: EdgeInsets.only(top: 24, bottom: 12), | ||
child: const Text( | ||
appName, | ||
style: const TextStyle( | ||
fontSize: 22, | ||
), | ||
), | ||
), | ||
const Text( | ||
appVersion, | ||
style: const TextStyle( | ||
fontSize: 16, | ||
), | ||
), | ||
], | ||
), | ||
)), | ||
), | ||
]); | ||
} | ||
|
||
return new Scaffold( | ||
appBar: appBarWidget(), | ||
body: body(), | ||
); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
const String appName = 'e1547'; | ||
const String appVersion = '1.1.0'; | ||
const String appVersion = '1.1.1'; | ||
const String defaultEndpoint = 'e926.net'; | ||
const String about = 'An app for e621 and e926.'; | ||
const String developer = 'binaryfloof'; | ||
const String developer = 'binaryfloof'; | ||
const String github = 'https://github.com/clragon/e1547/releases'; |
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
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
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.