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
e3079a33
Unverified
Commit
e3079a33
authored
Jul 09, 2020
by
Kate Lovett
Committed by
GitHub
Jul 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add additional float location case (#61171)
parent
f32a7371
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
209 additions
and
67 deletions
+209
-67
floating_action_button_location.dart
...ter/lib/src/material/floating_action_button_location.dart
+2
-1
floating_action_button_location_test.dart
...r/test/material/floating_action_button_location_test.dart
+207
-66
No files found.
packages/flutter/lib/src/material/floating_action_button_location.dart
View file @
e3079a33
...
...
@@ -443,12 +443,13 @@ mixin FabFloatOffsetY on StandardFabLocation {
@override
double
getOffsetY
(
ScaffoldPrelayoutGeometry
scaffoldGeometry
,
double
adjustment
)
{
final
double
contentBottom
=
scaffoldGeometry
.
contentBottom
;
final
double
bottomContentHeight
=
scaffoldGeometry
.
scaffoldSize
.
height
-
contentBottom
;
final
double
bottomSheetHeight
=
scaffoldGeometry
.
bottomSheetSize
.
height
;
final
double
fabHeight
=
scaffoldGeometry
.
floatingActionButtonSize
.
height
;
final
double
snackBarHeight
=
scaffoldGeometry
.
snackBarSize
.
height
;
final
double
safeMargin
=
math
.
max
(
kFloatingActionButtonMargin
,
scaffoldGeometry
.
minViewPadding
.
bottom
,
scaffoldGeometry
.
minViewPadding
.
bottom
-
bottomContentHeight
,
);
double
fabY
=
contentBottom
-
fabHeight
-
safeMargin
;
...
...
packages/flutter/test/material/floating_action_button_location_test.dart
View file @
e3079a33
This diff is collapsed.
Click to expand it.
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