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
Ravi Parmar
2021-11-02 22:58:09 +0530
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2021-11-02 22:58:09 +0530
Commit
dfea3859739d95edae6a7c1c5cee56460a0fadf5
dfea3859
1 parent
5be5fb8d
added CircularRevealTransition
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
lib/get_navigation/src/routes/default_transitions.dart
lib/get_navigation/src/routes/default_transitions.dart
View file @
dfea385
...
...
@@ -184,3 +184,26 @@ class SizeTransitions {
);
}
}
class
CircularRevealTransition
{
Widget
buildTransitions
(
BuildContext
context
,
Curve
?
curve
,
Alignment
?
alignment
,
Animation
<
double
>
animation
,
Animation
<
double
>
secondaryAnimation
,
Widget
child
)
{
return
ClipPath
(
clipper:
CircularRevealClipper
(
fraction:
animation
.
value
,
centerAlignment:
Alignment
.
center
,
centerOffset:
Offset
.
zero
,
minRadius:
0
,
maxRadius:
800
,
),
child:
child
,
);
}
}
...
...
Please
register
or
login
to post a comment