Skip to content

Commit

Permalink
Minor Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiCrackerOfficial committed May 22, 2024
1 parent 2b60168 commit 8440db3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/timetodelete/lib/pages/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ class _SettingsState extends State<Settings> {
),
TextButton(
onPressed: () async {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text('New Update Found... Redirecting to GitHub!'),
duration: Duration(seconds: 2),
),
);
await launchUrl(Uri.parse(
'https://github.com/AbhiCrackerOfficial/TimeToDelete/releases/latest'));
},
Expand Down Expand Up @@ -110,6 +116,12 @@ class _SettingsState extends State<Settings> {
trailing: Icon(Icons.star_border_sharp),
),
onTap: () {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text('Opening GitHub... Just wait a moment!'),
duration: Duration(seconds: 2),
),
);
StarTheRepository();
},
),
Expand Down
1 change: 0 additions & 1 deletion src/timetodelete/lib/pages/splash.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:animated_splash_screen/animated_splash_screen.dart';
import 'package:timetodelete/data/theme_data.dart';
import 'package:timetodelete/pages/layout.dart';
import 'package:flutter/material.dart';
import 'package:page_transition/page_transition.dart';
Expand Down

0 comments on commit 8440db3

Please sign in to comment.