Skip to content

Commit

Permalink
dart层不再依赖uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdPaleLight committed Apr 13, 2021
1 parent 7bb34dd commit b1f0071
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 1 addition & 6 deletions lib/flutter_boost_app.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'dart:async';
import 'package:flutter_boost/boost_container.dart';
import 'package:uuid/uuid.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
Expand Down Expand Up @@ -109,11 +108,7 @@ class FlutterBoostAppState extends State<FlutterBoostApp> {
}

String _createUniqueId(String pageName) {
if (kReleaseMode) {
return Uuid().v4();
} else {
return Uuid().v4() + '#$pageName';
}
return '${DateTime.now().millisecondsSinceEpoch}_$pageName';
}

BoostContainer _createContainer(PageInfo pageInfo) {
Expand Down
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ environment:
dependencies:
flutter:
sdk: flutter
uuid: ^2.2.2

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit b1f0071

Please sign in to comment.