Skip to content

Commit 6784c0d

Browse files
updated
1 parent ef5d346 commit 6784c0d

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

lib/main.dart

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,25 @@ class _HomePageState extends State<HomePage> {
101101
onTap: () async {
102102
final Uri url =
103103
Uri.parse('https://github.com/VikramadityaDev/text_to_image_gen/');
104-
104+
if (!await launchUrl(url,
105+
mode: LaunchMode.externalApplication)) {
106+
throw Exception('Could not launch $url');
107+
}
108+
},
109+
),
110+
ListTile(
111+
leading: Icon(
112+
Icons.update,
113+
color: Colors.deepPurple.shade800,
114+
),
115+
title: Text(
116+
"Check for update",
117+
style: TextStyle(
118+
fontSize: 16, color: Colors.deepPurple.shade400),
119+
),
120+
onTap: () async {
121+
final Uri url =
122+
Uri.parse('https://telegram.me/vikimediaofficial/');
105123
if (!await launchUrl(url,
106124
mode: LaunchMode.externalApplication)) {
107125
throw Exception('Could not launch $url');
@@ -256,7 +274,7 @@ class _HomePageState extends State<HomePage> {
256274
bottomNavigationBar: const Padding(
257275
padding: EdgeInsets.only(bottom: 8),
258276
child: Text(
259-
"Made With Love ❤️ Vikramaditya",
277+
"Made With Love ❤️ VikiMedia",
260278
textAlign: TextAlign.center,
261279
style: TextStyle(fontSize: 12),
262280
),

0 commit comments

Comments
 (0)