Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flutter_boost_1.22.4
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
flutter_boost_1.22.4
Commits
c5849a24
Commit
c5849a24
authored
Sep 11, 2020
by
justin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改默认动画
parent
755c0093
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
lib/flutter_boost.dart
lib/flutter_boost.dart
+14
-7
No files found.
lib/flutter_boost.dart
View file @
c5849a24
...
@@ -175,20 +175,27 @@ class FlutterBoost {
...
@@ -175,20 +175,27 @@ class FlutterBoost {
}
}
Route
<
Map
<
dynamic
,
dynamic
>>
defaultRoute
(
Widget
page
)
{
Route
<
Map
<
dynamic
,
dynamic
>>
defaultRoute
(
Widget
page
)
{
if
(
Platform
.
isIOS
)
{
if
(
Platform
.
isIOS
)
{
return
CupertinoPageRoute
<
Map
<
dynamic
,
dynamic
>>
(
return
CupertinoPageRoute
<
Map
<
dynamic
,
dynamic
>>
(
builder:
(
BuildContext
context
)
=>
page
builder:
(
BuildContext
context
)
=>
page
);
);
}
}
return
PageRouteBuilder
(
transitionDuration:
Duration
(
milliseconds:
300
),
pageBuilder:
(
context
,
animation
,
secondaryAnimation
)
=>
page
,
transitionsBuilder:
(
context
,
animation
,
secondaryAnimation
,
child
)
{
var
offsetAnimation
=
Tween
<
Offset
>(
begin:
Offset
(
1.0
,
0.0
),
end:
Offset
(
0.0
,
0.0
))
.
animate
(
CurvedAnimation
(
parent:
animation
,
curve:
Curves
.
fastOutSlowIn
));
return
SlideTransition
(
position:
offsetAnimation
,
child:
child
,
);
});
return
MaterialPageRoute
<
Map
<
dynamic
,
dynamic
>>(
builder:
(
BuildContext
context
)
=>
page
);
// PageRouteBuilder<Map<dynamic, dynamic>>(
// pageBuilder: (BuildContext context,
// Animation<double> animation,
// Animation<double> secondaryAnimation,) =>
// page)
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment