Skip to content

Commit

Permalink
remove hide keyword from imports (#3)
Browse files Browse the repository at this point in the history
* remove hide keyword from imports

* flutter format
  • Loading branch information
johnpryan authored May 25, 2022
1 parent 29dc353 commit 2c7b368
Show file tree
Hide file tree
Showing 21 changed files with 23 additions and 25 deletions.
2 changes: 1 addition & 1 deletion example/lib/basics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart' hide Route;
import 'package:flutter/material.dart';
import 'package:tree_router/tree_router.dart';

void main() {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/bottom_nav.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart' hide Route;
import 'package:flutter/material.dart';
import 'package:tree_router/tree_router.dart';

void main() {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/bottom_nav_with_navigator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart' hide Route;
import 'package:flutter/material.dart';
import 'package:tree_router/tree_router.dart';

void main() {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/bottom_nav_with_tabs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart' hide Route;
import 'package:flutter/material.dart';
import 'package:tree_router/tree_router.dart';

void main() {
Expand Down
8 changes: 3 additions & 5 deletions example/lib/cupertino.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@

import 'dart:ui';

import 'package:flutter/cupertino.dart' hide Route;
import 'package:flutter/cupertino.dart' as cupertino show Route;
import 'package:tree_router/tree_router.dart' hide RouteBase;
import 'package:flutter/cupertino.dart';
import 'package:tree_router/tree_router.dart';

void main() {
runApp(const CupertinoTabBarDemo());
Expand Down Expand Up @@ -253,8 +252,7 @@ class DetailsScreen extends StatefulWidget {
return navigator.restorablePush<void>(_routeBuilder, arguments: id);
}

static cupertino.Route<void> _routeBuilder(
BuildContext context, Object? arguments) {
static Route<void> _routeBuilder(BuildContext context, Object? arguments) {
final id = arguments as int?;
return CupertinoPageRoute(
builder: (context) => DetailsScreen(id: id, restorationId: 'details'),
Expand Down
2 changes: 1 addition & 1 deletion example/lib/feature_splitting/listen_now.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:adaptive_navigation/adaptive_navigation.dart';
import 'package:flutter/material.dart' hide Route;
import 'package:flutter/material.dart';
import 'package:tree_router/tree_router.dart';

import 'song.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/feature_splitting/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:adaptive_navigation/adaptive_navigation.dart';
import 'package:flutter/material.dart' hide Route;
import 'package:flutter/material.dart';
import 'package:tree_router/tree_router.dart';

import 'listen_now.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/feature_splitting/radio.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:adaptive_navigation/adaptive_navigation.dart';
import 'package:example/feature_splitting/song.dart';
import 'package:flutter/material.dart' hide Route;
import 'package:flutter/material.dart';
import 'package:tree_router/tree_router.dart';

class RadioFeature extends StatelessWidget {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/links.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:flutter/material.dart' hide Route;
import 'package:flutter/material.dart';
import 'package:tree_router/tree_router.dart';
import 'package:url_launcher/link.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/path_parameters.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart' hide Route;
import 'package:flutter/material.dart';
import 'package:tree_router/tree_router.dart';

void main() {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/recursive_shell.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart' hide Route;
import 'package:flutter/material.dart';
import 'package:tree_router/tree_router.dart';

void main() {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/stacked_nested_nav.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart' hide Route;
import 'package:flutter/material.dart';
import 'package:tree_router/tree_router.dart';

void main() {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/url_strategy.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart' hide Route;
import 'package:flutter/material.dart';
import 'package:flutter_web_plugins/url_strategy.dart';

import 'path_parameters.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.

import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart' hide Route;
import 'package:flutter/widgets.dart';
import 'package:tree_router/src/builder.dart';

import 'inheritance.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.

import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart' hide Route;
import 'package:flutter/widgets.dart';
import 'package:tree_router/src/inheritance.dart';

import 'match.dart';
Expand Down
2 changes: 1 addition & 1 deletion test/builder_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart' hide Route;
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:tree_router/src/delegate.dart';
import 'package:tree_router/src/match.dart';
Expand Down
2 changes: 1 addition & 1 deletion test/delegate_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart' hide Route;
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:tree_router/src/route.dart';
import 'package:tree_router/src/state.dart';
Expand Down
2 changes: 1 addition & 1 deletion test/helpers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart' hide Route;
import 'package:flutter/material.dart';
import 'package:tree_router/src/delegate.dart';
import 'package:tree_router/src/parser.dart';
import 'package:tree_router/tree_router.dart';
Expand Down
2 changes: 1 addition & 1 deletion test/redirect_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart' hide Route;
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:tree_router/tree_router.dart';

Expand Down
2 changes: 1 addition & 1 deletion test/route_state_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart' hide Route;
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:tree_router/src/delegate.dart';
import 'package:tree_router/src/parser.dart';
Expand Down
2 changes: 1 addition & 1 deletion test/tree_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/widgets.dart' hide Route;
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:tree_router/src/route.dart';
import 'package:tree_router/src/state.dart';
Expand Down

0 comments on commit 2c7b368

Please sign in to comment.