Skip to content

Commit

Permalink
Merge pull request #259 from 12fahed/main
Browse files Browse the repository at this point in the history
devs website linked with side drawer
  • Loading branch information
12fahed authored Aug 14, 2024
2 parents aec59a9 + dd0fcad commit b631036
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 b631036

Please sign in to comment.