File tree 2 files changed +7
-2
lines changed
flutter_highlight/example 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
- import 'dart:html' as html;
2
1
import 'package:flutter/material.dart' ;
3
2
import 'package:flutter_highlight/flutter_highlight.dart' ;
4
3
import 'package:flutter_highlight/theme_map.dart' ;
4
+ import 'package:url_launcher/url_launcher.dart' ;
5
5
import 'example_map.dart' ;
6
6
7
7
void main () => runApp (MyApp ());
@@ -87,7 +87,7 @@ class _MyHomePageState extends State<MyHomePage> {
87
87
icon: const Icon (Icons .code),
88
88
tooltip: 'Source Code' ,
89
89
onPressed: () {
90
- html.window. open ('https://github.com/pd4d10/highlight' , ' ' );
90
+ launch ('https://github.com/pd4d10/highlight' );
91
91
},
92
92
)
93
93
],
Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ environment:
19
19
dependencies :
20
20
flutter :
21
21
sdk : flutter
22
+ url_launcher : ^5.1.4
23
+ url_launcher_web :
24
+ git :
25
+ url : git://github.com/flutter/plugins.git
26
+ path : packages/url_launcher/url_launcher_web
22
27
flutter_highlight :
23
28
path : ../
24
29
You can’t perform that action at this time.
0 commit comments