Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ryan
2020-05-21 22:07:06 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0468fb3caa83d3009d591f5dda6d567cab7f19ef
0468fb3c
1 parent
97f5e91d
feat: add test wrapper
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
test/util/wrapper.dart
test/util/wrapper.dart
0 → 100644
View file @
0468fb3
import
'package:flutter/material.dart'
;
import
'package:get/get.dart'
;
class
Wrapper
extends
StatelessWidget
{
final
Widget
child
;
final
Map
<
String
,
GetRoute
>
namedRoutes
;
final
String
initialRoute
;
final
Transition
defaultTransition
;
const
Wrapper
({
Key
key
,
this
.
child
,
this
.
namedRoutes
,
this
.
initialRoute
,
this
.
defaultTransition
,
})
:
super
(
key:
key
);
@override
Widget
build
(
BuildContext
context
)
{
return
GetMaterialApp
(
defaultTransition:
defaultTransition
,
initialRoute:
initialRoute
,
namedRoutes:
namedRoutes
,
home:
Scaffold
(
body:
child
,
),
);
}
}
...
...
Please
register
or
login
to post a comment