Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
801a2646
Unverified
Commit
801a2646
authored
Nov 07, 2023
by
Greg Price
Committed by
GitHub
Nov 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document where `Curves` curves correspond to CSS easing functions (#137318)
parent
18812ffe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
curves.dart
packages/flutter/lib/src/animation/curves.dart
+8
-0
No files found.
packages/flutter/lib/src/animation/curves.dart
View file @
801a2646
...
@@ -1411,11 +1411,15 @@ abstract final class Curves {
...
@@ -1411,11 +1411,15 @@ abstract final class Curves {
/// A cubic animation curve that speeds up quickly and ends slowly.
/// A cubic animation curve that speeds up quickly and ends slowly.
///
///
/// This is the same as the CSS easing function `ease`.
///
/// {@animation 464 192 https://flutter.github.io/assets-for-api-docs/assets/animation/curve_ease.mp4}
/// {@animation 464 192 https://flutter.github.io/assets-for-api-docs/assets/animation/curve_ease.mp4}
static
const
Cubic
ease
=
Cubic
(
0.25
,
0.1
,
0.25
,
1.0
);
static
const
Cubic
ease
=
Cubic
(
0.25
,
0.1
,
0.25
,
1.0
);
/// A cubic animation curve that starts slowly and ends quickly.
/// A cubic animation curve that starts slowly and ends quickly.
///
///
/// This is the same as the CSS easing function `ease-in`.
///
/// {@animation 464 192 https://flutter.github.io/assets-for-api-docs/assets/animation/curve_ease_in.mp4}
/// {@animation 464 192 https://flutter.github.io/assets-for-api-docs/assets/animation/curve_ease_in.mp4}
static
const
Cubic
easeIn
=
Cubic
(
0.42
,
0.0
,
1.0
,
1.0
);
static
const
Cubic
easeIn
=
Cubic
(
0.42
,
0.0
,
1.0
,
1.0
);
...
@@ -1517,6 +1521,8 @@ abstract final class Curves {
...
@@ -1517,6 +1521,8 @@ abstract final class Curves {
/// A cubic animation curve that starts quickly and ends slowly.
/// A cubic animation curve that starts quickly and ends slowly.
///
///
/// This is the same as the CSS easing function `ease-out`.
///
/// {@animation 464 192 https://flutter.github.io/assets-for-api-docs/assets/animation/curve_ease_out.mp4}
/// {@animation 464 192 https://flutter.github.io/assets-for-api-docs/assets/animation/curve_ease_out.mp4}
static
const
Cubic
easeOut
=
Cubic
(
0.0
,
0.0
,
0.58
,
1.0
);
static
const
Cubic
easeOut
=
Cubic
(
0.0
,
0.0
,
0.58
,
1.0
);
...
@@ -1618,6 +1624,8 @@ abstract final class Curves {
...
@@ -1618,6 +1624,8 @@ abstract final class Curves {
/// A cubic animation curve that starts slowly, speeds up, and then ends
/// A cubic animation curve that starts slowly, speeds up, and then ends
/// slowly.
/// slowly.
///
///
/// This is the same as the CSS easing function `ease-in-out`.
///
/// {@animation 464 192 https://flutter.github.io/assets-for-api-docs/assets/animation/curve_ease_in_out.mp4}
/// {@animation 464 192 https://flutter.github.io/assets-for-api-docs/assets/animation/curve_ease_in_out.mp4}
static
const
Cubic
easeInOut
=
Cubic
(
0.42
,
0.0
,
0.58
,
1.0
);
static
const
Cubic
easeInOut
=
Cubic
(
0.42
,
0.0
,
0.58
,
1.0
);
...
...
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