Skip to content

Commit

Permalink
devs website linked with side drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
12fahed committed Aug 14, 2024
1 parent aec59a9 commit dd0fcad
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions lib/new_ui/screens/main_screen/main_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ import 'package:url_launcher/link.dart';

import '../../../services/sharedprefsfordot.dart';

import 'package:url_launcher/url_launcher.dart';
import 'package:flutter/gestures.dart';

class MainScreen extends ConsumerStatefulWidget {
const MainScreen({
Key? key,
Expand Down Expand Up @@ -829,17 +832,27 @@ class _MainScreenState extends ConsumerState<MainScreen> {
children: [
Text.rich(
TextSpan(
text: 'Made with ♥️ TSEC ',
style: TextStyle(
fontSize: 10, color: Colors.white),
children: [
TextSpan(
text: 'Devs Club',
style: TextStyle(fontSize: 10,
color: Colors.blue,
fontWeight: FontWeight.w700)
)
]
text: 'Made with ♥️ TSEC ',
style: TextStyle(fontSize: 10, color: Colors.white),
children: [
TextSpan(
text: 'Devs Club',
style: TextStyle(
fontSize: 10,
color: Colors.blue,
fontWeight: FontWeight.w700,
),
recognizer: TapGestureRecognizer()
..onTap = () async {
const url = 'https://tsecdevsclub.com';
if (await canLaunch(url)) {
await launch(url);
} else {
throw 'Could not launch $url';
}
},
),
],
),
),
],
Expand Down

0 comments on commit dd0fcad

Please sign in to comment.