Skip to content

Commit

Permalink
Added a sorting method on the change locations
Browse files Browse the repository at this point in the history
  • Loading branch information
Vustron committed Nov 25, 2023
1 parent 92f7195 commit e2f4a79
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions devtools_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extensions:
2 changes: 1 addition & 1 deletion lib/auth/signin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class _SignInState extends State<SignIn> {
TextButton(
onPressed: () => {},
child: Text(
'Ver.2.3.2 \u00A9 Made by Vustron Vustronus 2023',
'Ver.2.3.3 \u00A9 Made by Vustron Vustronus 2023',
style: GoogleFonts.zenDots(
fontSize: 7.0,
fontWeight: FontWeight.bold,
Expand Down
2 changes: 1 addition & 1 deletion lib/auth/signup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class _SignUpState extends State<SignUp> {
TextButton(
onPressed: () => {},
child: Text(
'Ver.2.3.2 \u00A9 Made by Vustron Vustronus 2023',
'Ver.2.3.3 \u00A9 Made by Vustron Vustronus 2023',
style: GoogleFonts.zenDots(
fontSize: 7.0,
fontWeight: FontWeight.bold,
Expand Down
6 changes: 6 additions & 0 deletions lib/views/changeLocationView.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ class _ChangeLocationState extends State<ChangeLocation> {
WorldTimeData(url: 'Europe/Rome', location: 'Rome', flag: 'italy.png'),
];

@override
void initState() {
super.initState();
locations.sort((a, b) => a.location.compareTo(b.location));
}

@override
Widget build(BuildContext context) {
print('Build function run');
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 2.3.2+1
version: 2.3.3+1

environment:
sdk: ">=3.1.5 <4.0.0"
Expand Down

0 comments on commit e2f4a79

Please sign in to comment.