Skip to content

Commit 2944f9d

Browse files
committed
Get rid of the # in the URL
1 parent 75cebbd commit 2944f9d

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

lib/main.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import 'package:commit451/app.dart';
22
import 'package:flutter/material.dart';
3+
import 'package:url_strategy/url_strategy.dart';
34

45
void main() {
6+
setPathUrlStrategy();
57
runApp(const App());
68
}

pubspec.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,13 @@ packages:
231231
url: "https://pub.dartlang.org"
232232
source: hosted
233233
version: "3.0.1"
234+
url_strategy:
235+
dependency: "direct main"
236+
description:
237+
name: url_strategy
238+
url: "https://pub.dartlang.org"
239+
source: hosted
240+
version: "0.2.0"
234241
vector_math:
235242
dependency: transitive
236243
description:

pubspec.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ environment:
99
sdk: ">=2.17.0 <3.0.0"
1010

1111
dependencies:
12-
url_launcher: ^6.1.0
13-
font_awesome_flutter: ^10.1.0
1412
flutter:
1513
sdk: flutter
14+
url_launcher: ^6.1.0
15+
font_awesome_flutter: ^10.1.0
16+
url_strategy: ^0.2.0
1617

1718
dev_dependencies:
1819
flutter_test:

0 commit comments

Comments
 (0)