File tree Expand file tree Collapse file tree 5 files changed +72
-9
lines changed Expand file tree Collapse file tree 5 files changed +72
-9
lines changed Original file line number Diff line number Diff line change 1
1
import 'package:flutter/material.dart' ;
2
2
import 'package:flutter_screenutil/flutter_screenutil.dart' ;
3
3
import 'package:routemaster/routemaster.dart' ;
4
+ import 'package:url_launcher/url_launcher.dart' ;
4
5
5
6
import '../animations/hover_lift_and_rise.dart' ;
6
7
@@ -67,21 +68,36 @@ class LandingScreen extends StatelessWidget {
67
68
mainAxisAlignment: MainAxisAlignment .end,
68
69
children: < Widget > [
69
70
HoverLiftAndRise (
70
- child: Image .asset (
71
- "assets/logos/github.png" ,
72
- width: 40 ,
71
+ child: GestureDetector (
72
+ onTap: () async {
73
+ await launch ("https://github.com/appwrite/appwrite" );
74
+ },
75
+ child: Image .asset (
76
+ "assets/logos/github.png" ,
77
+ width: 40 ,
78
+ ),
73
79
),
74
80
),
75
81
HoverLiftAndRise (
76
- child: Image .asset (
77
- "assets/logos/twitter.png" ,
78
- width: 40 ,
82
+ child: GestureDetector (
83
+ onTap: () async {
84
+ await launch ("https://twitter.com/appwrite_io" );
85
+ },
86
+ child: Image .asset (
87
+ "assets/logos/twitter.png" ,
88
+ width: 40 ,
89
+ ),
79
90
),
80
91
),
81
92
HoverLiftAndRise (
82
- child: Image .asset (
83
- "assets/logos/appwrite.png" ,
84
- width: 40 ,
93
+ child: GestureDetector (
94
+ onTap: () async {
95
+ await launch ("https://appwrite.io/" );
96
+ },
97
+ child: Image .asset (
98
+ "assets/logos/appwrite.png" ,
99
+ width: 40 ,
100
+ ),
85
101
),
86
102
),
87
103
],
Original file line number Diff line number Diff line change @@ -497,6 +497,48 @@ packages:
497
497
url: "https://pub.dartlang.org"
498
498
source: hosted
499
499
version: "2.0.4"
500
+ url_launcher:
501
+ dependency: "direct main"
502
+ description:
503
+ name: url_launcher
504
+ url: "https://pub.dartlang.org"
505
+ source: hosted
506
+ version: "6.0.4"
507
+ url_launcher_linux:
508
+ dependency: transitive
509
+ description:
510
+ name: url_launcher_linux
511
+ url: "https://pub.dartlang.org"
512
+ source: hosted
513
+ version: "2.0.0"
514
+ url_launcher_macos:
515
+ dependency: transitive
516
+ description:
517
+ name: url_launcher_macos
518
+ url: "https://pub.dartlang.org"
519
+ source: hosted
520
+ version: "2.0.0"
521
+ url_launcher_platform_interface:
522
+ dependency: transitive
523
+ description:
524
+ name: url_launcher_platform_interface
525
+ url: "https://pub.dartlang.org"
526
+ source: hosted
527
+ version: "2.0.3"
528
+ url_launcher_web:
529
+ dependency: transitive
530
+ description:
531
+ name: url_launcher_web
532
+ url: "https://pub.dartlang.org"
533
+ source: hosted
534
+ version: "2.0.0"
535
+ url_launcher_windows:
536
+ dependency: transitive
537
+ description:
538
+ name: url_launcher_windows
539
+ url: "https://pub.dartlang.org"
540
+ source: hosted
541
+ version: "2.0.0"
500
542
vector_math:
501
543
dependency: transitive
502
544
description:
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ dependencies:
28
28
flutter_riverpod : ^0.14.0+3
29
29
flutter_screenutil : ^5.0.0+2
30
30
routemaster : ^0.9.0-dev2
31
+ url_launcher : ^6.0.4
31
32
32
33
dev_dependencies :
33
34
flutter_test :
Original file line number Diff line number Diff line change 4
4
5
5
#include " generated_plugin_registrant.h"
6
6
7
+ #include < url_launcher_windows/url_launcher_plugin.h>
7
8
8
9
void RegisterPlugins (flutter::PluginRegistry* registry) {
10
+ UrlLauncherPluginRegisterWithRegistrar (
11
+ registry->GetRegistrarForPlugin (" UrlLauncherPlugin" ));
9
12
}
Original file line number Diff line number Diff line change 3
3
#
4
4
5
5
list (APPEND FLUTTER_PLUGIN_LIST
6
+ url_launcher_windows
6
7
)
7
8
8
9
set (PLUGIN_BUNDLED_LIBRARIES)
You can’t perform that action at this time.
0 commit comments