Skip to content

Commit

Permalink
Minor changes with icon. See CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
theRookieCoder committed May 28, 2021
1 parent 10ba19a commit 0f20306
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 38 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## [1.3.4]

- Added app icon as asset
- Added app icon to `AboutDialog`
- Added Flutter to drawer
- Changed drawer `ListView` to `Column`
- Changed website favicon and PWA icons to use app icon

## [1.3.3]

- Changed support page
Expand Down
File renamed without changes
74 changes: 40 additions & 34 deletions lib/HomePage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,11 @@ class _HomePageState extends State<HomePage> {
drawer: Container(
width: _getDrawerWidth(),
child: Drawer(
child: ListView(
physics: NeverScrollableScrollPhysics(),
child: Column(
children: <Widget>[
Container(
// Use drawer width to determine drawer header size
height: _getDrawerWidth() * 0.8,
height: _getDrawerWidth() * 0.9,
child: DrawerHeader(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
Expand Down Expand Up @@ -142,38 +141,39 @@ class _HomePageState extends State<HomePage> {
return AboutDialog(
applicationName: "BP Logger",
applicationVersion: "Version ${widget.version}",
applicationIcon: Image.asset(
"assets/Icon_298x298.png",
scale: 5,
),
children: <Widget>[
Padding(
padding: EdgeInsets.only(left: 20),
child: RichText(
text: TextSpan(
children: [
TextSpan(
text: "This app is open sourced ",
style: Theme.of(context).textTheme.caption,
),
TextSpan(
text: "in Github",
style: Theme.of(context)
.textTheme
.caption!
.apply(
color: Colors.blue,
),
recognizer: TapGestureRecognizer()
..onTap = () async => launch(
"https://www.github.com/theRookieCoder/bp_logger",
forceWebView: true,
enableJavaScript: true,
statusBarBrightness:
Theme.of(context).brightness),
),
TextSpan(
text: " under the AGPL 3.0 License",
style: Theme.of(context).textTheme.caption,
),
],
),
RichText(
text: TextSpan(
children: [
TextSpan(
text: "This app is open sourced ",
style: Theme.of(context).textTheme.caption,
),
TextSpan(
text: "in Github",
style: Theme.of(context)
.textTheme
.caption!
.apply(
color: Colors.blue,
),
recognizer: TapGestureRecognizer()
..onTap = () async => launch(
"https://www.github.com/theRookieCoder/bp_logger",
forceWebView: true,
enableJavaScript: true,
statusBarBrightness:
Theme.of(context).brightness),
),
TextSpan(
text: " under the AGPL 3.0 License",
style: Theme.of(context).textTheme.caption,
),
],
),
),
],
Expand All @@ -182,6 +182,12 @@ class _HomePageState extends State<HomePage> {
);
},
),
Spacer(),
ListTile(
leading: FlutterLogo(size: 30),
title: Text("Powered by Flutter"),
onTap: () => launch("https://www.flutter.dev"),
),
],
),
),
Expand Down
9 changes: 6 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ repository: https://www.github.com/theRookieCoder/bp_logger
publish_to: "none"

# The following defines the version and build number for your application.
version: 1.3.3
version: 1.3.4

environment:
sdk: ">=2.13.0 <3.0.0"
sdk: ">=2.12.0 <3.0.0"

dependencies:
flutter:
Expand All @@ -26,7 +26,10 @@ dev_dependencies:
flutter_icons:
android: true
ios: true
image_path: "assets/Icon_498x498.png"
image_path: "assets/Icon_298x298.png"

flutter:
assets:
- assets/Icon_298x298.png

uses-material-design: true
Binary file modified web/icons/Icon-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified web/icons/Icon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<link rel="apple-touch-icon" href="icons/Icon-192.png" />

<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="icon" type="image/png" href="icons/Icon-192.png" />

<title>BP Logger</title>
<link rel="manifest" href="manifest.json" />
Expand Down

0 comments on commit 0f20306

Please sign in to comment.