File tree Expand file tree Collapse file tree 8 files changed +87
-4
lines changed Expand file tree Collapse file tree 8 files changed +87
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import 'package:urfu_navigator_mobile/feature/ui/provider/overlay_model.dart';
77import 'package:urfu_navigator_mobile/feature/ui/widgets/icon_exit.dart' ;
88import 'package:urfu_navigator_mobile/feature/ui/widgets/section_item.dart' ;
99import 'package:urfu_navigator_mobile/utils/const.dart' ;
10+ import 'package:url_launcher/url_launcher.dart' ;
1011
1112class OverlayVisibility extends StatelessWidget {
1213 OverlayVisibility ({super .key});
@@ -101,14 +102,20 @@ class OverlayProfile extends StatelessWidget {
101102 crossAxisAlignment: CrossAxisAlignment .center,
102103 mainAxisAlignment: MainAxisAlignment .center,
103104 children: [
104- Image .asset (
105- 'assets/img/socials/tg.png' ,
105+ IconButton (
106+ icon: Image .asset ('assets/img/socials/tg.png' ),
107+ iconSize: 48 ,
108+ onPressed: () =>
109+ launchUrl (Uri .parse ('https://t.me/navigator_urfu' )),
106110 ),
107111 SizedBox (
108112 width: 24 ,
109113 ),
110- Image .asset (
111- 'assets/img/socials/vk.png' ,
114+ IconButton (
115+ icon: Image .asset ('assets/img/socials/vk.png' ),
116+ iconSize: 48 ,
117+ onPressed: () =>
118+ launchUrl (Uri .parse ('https://vk.com/urfu_navigator' )),
112119 ),
113120 ],
114121 ),
Original file line number Diff line number Diff line change 66
77#include " generated_plugin_registrant.h"
88
9+ #include < url_launcher_linux/url_launcher_plugin.h>
910
1011void fl_register_plugins (FlPluginRegistry* registry) {
12+ g_autoptr (FlPluginRegistrar) url_launcher_linux_registrar =
13+ fl_plugin_registry_get_registrar_for_plugin (registry, " UrlLauncherPlugin" );
14+ url_launcher_plugin_register_with_registrar (url_launcher_linux_registrar);
1115}
Original file line number Diff line number Diff line change 33#
44
55list (APPEND FLUTTER_PLUGIN_LIST
6+ url_launcher_linux
67)
78
89list (APPEND FLUTTER_FFI_PLUGIN_LIST
Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ import FlutterMacOS
66import Foundation
77
88import shared_preferences_foundation
9+ import url_launcher_macos
910
1011func RegisterGeneratedPlugins( registry: FlutterPluginRegistry ) {
1112 SharedPreferencesPlugin . register ( with: registry. registrar ( forPlugin: " SharedPreferencesPlugin " ) )
13+ UrlLauncherPlugin . register ( with: registry. registrar ( forPlugin: " UrlLauncherPlugin " ) )
1214}
Original file line number Diff line number Diff line change @@ -863,6 +863,70 @@ packages:
863863 url: "https://pub.dev"
864864 source: hosted
865865 version: "1.4.0"
866+ url_launcher:
867+ dependency: "direct main"
868+ description:
869+ name: url_launcher
870+ sha256: "9d06212b1362abc2f0f0d78e6f09f726608c74e3b9462e8368bb03314aa8d603"
871+ url: "https://pub.dev"
872+ source: hosted
873+ version: "6.3.1"
874+ url_launcher_android:
875+ dependency: transitive
876+ description:
877+ name: url_launcher_android
878+ sha256: "6fc2f56536ee873eeb867ad176ae15f304ccccc357848b351f6f0d8d4a40d193"
879+ url: "https://pub.dev"
880+ source: hosted
881+ version: "6.3.14"
882+ url_launcher_ios:
883+ dependency: transitive
884+ description:
885+ name: url_launcher_ios
886+ sha256: "16a513b6c12bb419304e72ea0ae2ab4fed569920d1c7cb850263fe3acc824626"
887+ url: "https://pub.dev"
888+ source: hosted
889+ version: "6.3.2"
890+ url_launcher_linux:
891+ dependency: transitive
892+ description:
893+ name: url_launcher_linux
894+ sha256: "4e9ba368772369e3e08f231d2301b4ef72b9ff87c31192ef471b380ef29a4935"
895+ url: "https://pub.dev"
896+ source: hosted
897+ version: "3.2.1"
898+ url_launcher_macos:
899+ dependency: transitive
900+ description:
901+ name: url_launcher_macos
902+ sha256: "17ba2000b847f334f16626a574c702b196723af2a289e7a93ffcb79acff855c2"
903+ url: "https://pub.dev"
904+ source: hosted
905+ version: "3.2.2"
906+ url_launcher_platform_interface:
907+ dependency: transitive
908+ description:
909+ name: url_launcher_platform_interface
910+ sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029"
911+ url: "https://pub.dev"
912+ source: hosted
913+ version: "2.3.2"
914+ url_launcher_web:
915+ dependency: transitive
916+ description:
917+ name: url_launcher_web
918+ sha256: "772638d3b34c779ede05ba3d38af34657a05ac55b06279ea6edd409e323dca8e"
919+ url: "https://pub.dev"
920+ source: hosted
921+ version: "2.3.3"
922+ url_launcher_windows:
923+ dependency: transitive
924+ description:
925+ name: url_launcher_windows
926+ sha256: "3284b6d2ac454cf34f114e1d3319866fdd1e19cdc329999057e44ffe936cfa77"
927+ url: "https://pub.dev"
928+ source: hosted
929+ version: "3.1.4"
866930 vector_graphics:
867931 dependency: transitive
868932 description:
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ dependencies:
5151 slang_flutter : ^4.4.0
5252 # Localization
5353 slang_build_runner : ^4.4.0
54+ url_launcher : ^6.3.1
5455
5556dev_dependencies :
5657 flutter_test :
Original file line number Diff line number Diff line change 66
77#include " generated_plugin_registrant.h"
88
9+ #include < url_launcher_windows/url_launcher_windows.h>
910
1011void RegisterPlugins (flutter::PluginRegistry* registry) {
12+ UrlLauncherWindowsRegisterWithRegistrar (
13+ registry->GetRegistrarForPlugin (" UrlLauncherWindows" ));
1114}
Original file line number Diff line number Diff line change 33#
44
55list (APPEND FLUTTER_PLUGIN_LIST
6+ url_launcher_windows
67)
78
89list (APPEND FLUTTER_FFI_PLUGIN_LIST
You can’t perform that action at this time.
0 commit comments