Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devs website linked with side drawer #259

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading