diff --git a/lib/screens/changelog.dart b/lib/screens/changelog.dart index 1f3c1d55..891908e1 100644 --- a/lib/screens/changelog.dart +++ b/lib/screens/changelog.dart @@ -1,4 +1,5 @@ import 'package:figstyle/components/desktop_app_bar.dart'; +import 'package:figstyle/components/page_app_bar.dart'; import 'package:figstyle/state/colors.dart'; import 'package:figstyle/types/changelog_item.dart'; import 'package:figstyle/utils/constants.dart'; @@ -24,6 +25,33 @@ class _ChangelogState extends State { changelogItemsList.addAll([ itemChangelogTemplate( textTitle: Constants.appVersion, + date: DateTime(2021, 02, 26), + children: [ + descriptionRow("• Fix multiple date conversion issues"), + descriptionRow("• Update link cards style (e.g. on author page)"), + descriptionRow( + "• Fix author image link input keeping last (other input) value"), + descriptionRow("• Fix author navigation from reference page"), + descriptionRow("• Fix nav. back icon clipped on PageAppBar"), + descriptionRow("• Fix app bar overflow sometimes"), + descriptionRow("• Fix icons alignment on app bar"), + descriptionRow("• Reduce top padding on topic page"), + descriptionRow( + "• Add a close button on side bar, at the top, on topic page"), + descriptionRow( + "• Show author's name on quote card (when available) (grid layout)"), + descriptionRow("• Update font on quote card (grid layout)"), + descriptionRow("• Add release date on reference page"), + descriptionRow("• Fix navigation (from quote page) to topic page"), + descriptionRow("• Update Firebase dependencies"), + descriptionRow("• Update types layout on reference page"), + descriptionRow("• Update data schemes (for database compatibility)"), + descriptionRow("• Add visual feedback when saving draft"), + descriptionRow("• Update random quotes page for mobile"), + ], + ), + itemChangelogTemplate( + textTitle: "2.47.1", date: DateTime(2021, 02, 22), children: [ descriptionRow( @@ -65,62 +93,6 @@ class _ChangelogState extends State { descriptionRow("• Update footer component and about page (web)"), ], ), - itemChangelogTemplate( - textTitle: "2.0.0", - date: DateTime(2020, 12, 01), - children: [ - descriptionRow("• Re-design add quote experience"), - descriptionRow("• Re-design icon assets"), - descriptionRow("• Fix push notifications"), - descriptionRow("• Add share image quote"), - descriptionRow("• Update quote page & other pages layout"), - descriptionRow("• Add search by quotes, authors, references"), - descriptionRow("• Add changelog"), - descriptionRow("• Add swipe actions on quote tiles"), - descriptionRow("• Re-work application icon"), - descriptionRow("• Add onboarding"), - descriptionRow("• Update first app's page"), - descriptionRow("• Use better image preview"), - descriptionRow("• Bug fixes and other improvements"), - ], - ), - itemChangelogTemplate( - textTitle: "1.3.0", - date: DateTime(2020, 07, 22), - children: [ - descriptionRow( - "• Minor UI update: add a top right close button on quotidian page"), - ], - ), - itemChangelogTemplate( - textTitle: "1.2.3", - date: DateTime(2020, 07, 08), - children: [ - descriptionRow( - "• Fix an issue where a draft without topics wouldn't show"), - descriptionRow("• Speed up topics animation on add quote page"), - ], - ), - itemChangelogTemplate( - textTitle: "1.2.1", - date: DateTime(2020, 06, 17), - children: [ - descriptionRow( - "• Fix a visual bug where link cards on author page would have a longer height than expected"), - ], - ), - itemChangelogTemplate( - textTitle: "1.2.0", - date: DateTime(2020, 06, 15), - children: [ - descriptionRow("• Add help center link"), - descriptionRow("• Update design"), - descriptionRow("• Add inputs format checks for username & email"), - descriptionRow("• Add availability checks for email & username"), - descriptionRow("• Better error messages"), - descriptionRow("• Bug fixes"), - ], - ), ]); } @@ -129,19 +101,21 @@ class _ChangelogState extends State { final width = MediaQuery.of(context).size.width; double horPadding = 80.0; + double vertPadding = 60.0; if (width < Constants.maxMobileWidth) { horPadding = 20.0; + vertPadding = 12.0; } return Scaffold( body: CustomScrollView( slivers: [ - DesktopAppBar(), + appBar(), SliverPadding( padding: EdgeInsets.symmetric( horizontal: horPadding, - vertical: 60.0, + vertical: vertPadding, ), sliver: SliverList( delegate: SliverChildListDelegate.fixed([ @@ -157,6 +131,14 @@ class _ChangelogState extends State { ); } + Widget appBar() { + if (MediaQuery.of(context).size.width < Constants.maxMobileWidth) { + return PageAppBar(textTitle: "App versions"); + } + + return DesktopAppBar(); + } + ChangelogItem itemChangelogTemplate({ @required DateTime date, @required String textTitle, @@ -261,7 +243,7 @@ class _ChangelogState extends State { spacing: 20.0, children: [ Text( - "See releases online", + "See more releases online", style: TextStyle( fontSize: 15, decoration: TextDecoration.underline, diff --git a/lib/utils/constants.dart b/lib/utils/constants.dart index 86ca43d8..9cf31238 100644 --- a/lib/utils/constants.dart +++ b/lib/utils/constants.dart @@ -1,6 +1,6 @@ class Constants { - static const appVersion = '2.63.5'; - static const appBuildNumber = 11; + static const appVersion = '2.66.2'; + static const appBuildNumber = 12; static const cardElevation = 2.0; static const maxMobileWidth = 700.0; static const appGithubUrl = 'https://github.com/rootasjey/fig.style'; diff --git a/pubspec.yaml b/pubspec.yaml index 7253be01..69792d82 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # 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.63.5+11 +version: 2.66.2+12 environment: sdk: ">=2.2.2 <3.0.0"