Versioning: 51.0

This commit is contained in:
Ming Ming 2022-09-08 01:13:33 +08:00
parent 9fd57951ed
commit 9328244ed6
3 changed files with 36 additions and 7 deletions

View file

@ -1,6 +1,6 @@
/// Version string shown in settings page /// Version string shown in settings page
const versionStr = "50.3"; const versionStr = "51.0";
const version = 503; const version = 510;
/// Show a snack bar for a short amount of time /// Show a snack bar for a short amount of time
const snackBarDurationShort = Duration(seconds: 4); const snackBarDurationShort = Duration(seconds: 4);

View file

@ -41,10 +41,18 @@ class Changelog extends StatelessWidget {
title: const Text("Changelog"), title: const Text("Changelog"),
); );
Widget _buildContent(BuildContext context) => ListView.builder( Widget _buildContent(BuildContext context) {
itemCount: _changelogs.length, return Column(
itemBuilder: _buildItem, children: [
); Expanded(
child: ListView.builder(
itemCount: _changelogs.length,
itemBuilder: _buildItem,
),
),
],
);
}
Widget _buildItem(BuildContext context, int i) { Widget _buildItem(BuildContext context, int i) {
try { try {
@ -162,6 +170,26 @@ List<Widget> _buildChangelog500(BuildContext context) {
]; ];
} }
List<Widget> _buildChangelog510(BuildContext context) {
return [
_subSection("Changes"),
_bulletGroup(
const Text("New image editing tools"),
[
const Text("Crop"),
const Text("Change the orientation (90°, 180°, 270°) of an image"),
],
),
_bulletGroup(const Text("Search now returns more relavant results")),
_bulletGroup(
const Text("Tweak how many days should be included in Memories"),
[
const Text("Settings > Photos > Memories range"),
],
),
];
}
List<Widget> _buildChangelogCompat(BuildContext context, int majorVersion) { List<Widget> _buildChangelogCompat(BuildContext context, int majorVersion) {
var change = _oldChangelogs[majorVersion - 1]; var change = _oldChangelogs[majorVersion - 1];
if (change != null) { if (change != null) {
@ -218,6 +246,7 @@ Widget _subBulletPoint(Widget child) => Row(
); );
final _changelogs = <int, List<Widget> Function(BuildContext)>{ final _changelogs = <int, List<Widget> Function(BuildContext)>{
510: _buildChangelog510,
500: _buildChangelog500, 500: _buildChangelog500,
480: _buildChangelog480, 480: _buildChangelog480,
470: _buildChangelog470, 470: _buildChangelog470,

View file

@ -15,7 +15,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. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at # Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.50.3+5030 version: 1.51.0+5100
environment: environment:
sdk: ">=2.17.0 <3.0.0" sdk: ">=2.17.0 <3.0.0"