From 1b046d517fac2b2c768746df8beb6197789b2e1d Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Sun, 15 Sep 2019 22:32:11 +0300 Subject: [PATCH] Increased font weight and added bold font --- CHANGELOG.TXT | 4 ++++ ios/Podfile.lock | 4 ++-- .../train_info_cupertino_DisplayTrainStation.dart | 8 ++++---- pubspec.yaml | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index 549a52f..0f3f195 100644 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -1,3 +1,7 @@ +v2.0.5 +- increased font weight on iOS +- added support for system bolt font request on iOS + v2.0.4 - added original time in case of delay for iOS + will be for Android soon diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 4d6db99..ea9f7c6 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -4,12 +4,12 @@ PODS: - Flutter DEPENDENCIES: - - Flutter (from `.symlinks/flutter/ios`) + - Flutter (from `.symlinks/flutter/ios-release`) - webview_flutter (from `.symlinks/plugins/webview_flutter/ios`) EXTERNAL SOURCES: Flutter: - :path: ".symlinks/flutter/ios" + :path: ".symlinks/flutter/ios-release" webview_flutter: :path: ".symlinks/plugins/webview_flutter/ios" diff --git a/lib/train_info_page/train_info_cupertino_DisplayTrainStation.dart b/lib/train_info_page/train_info_cupertino_DisplayTrainStation.dart index bed28ae..bab4a13 100644 --- a/lib/train_info_page/train_info_cupertino_DisplayTrainStation.dart +++ b/lib/train_info_page/train_info_cupertino_DisplayTrainStation.dart @@ -111,8 +111,8 @@ class KmBadge extends StatelessWidget { value.toString(), style: CupertinoTheme.of(context).textTheme.textStyle.copyWith( fontSize: 18, - fontWeight: FontWeight.w100, - color: foregroundColor + fontWeight: MediaQuery.of(context).boldText ? FontWeight.w400 : FontWeight.w200, + color: MediaQuery.of(context).boldText ? FOREGROUND_WHITE : foregroundColor, ), textAlign: TextAlign.center, ); @@ -124,7 +124,7 @@ class KmBadge extends StatelessWidget { "km", style: CupertinoTheme.of(context).textTheme.textStyle.copyWith( fontSize: 10, - color: foregroundColor, + color: MediaQuery.of(context).boldText ? FOREGROUND_WHITE : foregroundColor, ), ), ], @@ -153,7 +153,7 @@ class Title extends StatelessWidget { items[0], style: CupertinoTheme.of(context).textTheme.textStyle.copyWith( fontSize: 22, - fontWeight: FontWeight.w100, + fontWeight: MediaQuery.of(context).boldText ? FontWeight.w400 : FontWeight.w200, fontStyle: items[1] == "ONI" ? FontStyle.italic : FontStyle.normal, ), textAlign: TextAlign.center, diff --git a/pubspec.yaml b/pubspec.yaml index 1eaddb6..ce5d787 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ description: O aplicație de vizualizare a datelor puse la dispoziție de Inform # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 2.0.4 +version: 2.0.5 environment: sdk: ">=2.3.0 <3.0.0"