Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
comments
  • Loading branch information
szakarias committed May 1, 2017
commit 61bda80b35e37db6b9b979fec162d611f37420a8
6 changes: 3 additions & 3 deletions packages/url-launcher/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ void main() {
}

_launchURL() async {
String url = 'https://flutter.io';
const url = 'https://flutter.io';
if (await canLaunch(url)) {
launch(url);
await launch(url);
} else {
throw "Could not launch $url";
throw 'Could not launch $url';
}
}

Expand Down
6 changes: 3 additions & 3 deletions packages/url-launcher/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class _MyHomePageState extends State<MyHomePage> {
if (await canLaunch(url)) {
await launch(url);
} else {
throw "Could not launch $url";
throw 'Could not launch $url';
}
}

Expand All @@ -72,11 +72,11 @@ class _MyHomePageState extends State<MyHomePage> {
children: [
new Padding(
padding: new EdgeInsets.all(16.0),
child: new Text("https://flutter.io"),
child: new Text('https://flutter.io'),
),
new RaisedButton(
onPressed: _launchUrl,
child: new Text("Go"),
child: new Text('Go'),
),
],
),
Expand Down