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
9ad94220
Commit
9ad94220
authored
Dec 14, 2015
by
Devon Carew
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #907 from devoncarew/mini_fab
support mini fabs
parents
5b42f83f
a8582228
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
floating_action_button.dart
...ages/flutter/lib/src/material/floating_action_button.dart
+6
-3
basic.dart
packages/flutter/lib/src/widgets/basic.dart
+1
-1
statistics_overlay.dart
packages/flutter/lib/src/widgets/statistics_overlay.dart
+1
-1
No files found.
packages/flutter/lib/src/material/floating_action_button.dart
View file @
9ad94220
...
...
@@ -13,6 +13,7 @@ import 'theme.dart';
// TODO(eseidel): This needs to change based on device size?
// http://www.google.com/design/spec/layout/metrics-keylines.html#metrics-keylines-keylines-spacing
const
double
_kSize
=
56.0
;
const
double
_kSizeMini
=
40.0
;
class
FloatingActionButton
extends
StatefulComponent
{
const
FloatingActionButton
({
...
...
@@ -21,7 +22,8 @@ class FloatingActionButton extends StatefulComponent {
this
.
backgroundColor
,
this
.
elevation
:
6
,
this
.
highlightElevation
:
12
,
this
.
onPressed
this
.
onPressed
,
this
.
mini
:
false
})
:
super
(
key:
key
);
final
Widget
child
;
...
...
@@ -29,6 +31,7 @@ class FloatingActionButton extends StatefulComponent {
final
VoidCallback
onPressed
;
final
int
elevation
;
final
int
highlightElevation
;
final
bool
mini
;
_FloatingActionButtonState
createState
()
=>
new
_FloatingActionButtonState
();
}
...
...
@@ -56,8 +59,8 @@ class _FloatingActionButtonState extends State<FloatingActionButton> {
type:
MaterialType
.
circle
,
elevation:
_highlight
?
config
.
highlightElevation
:
config
.
elevation
,
child:
new
Container
(
width:
_kSize
,
height:
_kSize
,
width:
config
.
mini
?
_kSizeMini
:
_kSize
,
height:
config
.
mini
?
_kSizeMini
:
_kSize
,
child:
new
InkWell
(
onTap:
config
.
onPressed
,
onHighlightChanged:
_handleHighlightChanged
,
...
...
packages/flutter/lib/src/widgets/basic.dart
View file @
9ad94220
...
...
@@ -1252,7 +1252,7 @@ class RawText extends LeafRenderObjectWidget {
/// A convience widget for paragraphs of text with heterogeneous style.
///
/// The elements param
ter is a recusr
ive list of lists that matches the
/// The elements param
eter is a recurs
ive list of lists that matches the
/// following grammar:
///
/// `elements ::= "string" | [<text-style> <elements>*]``
...
...
packages/flutter/lib/src/widgets/statistics_overlay.dart
View file @
9ad94220
...
...
@@ -60,7 +60,7 @@ class StatisticsOverlay extends LeafRenderObjectWidget {
/// The rasterizer threshold is an integer specifying the number of frame
/// intervals that the rasterizer must miss before it decides that the frame
/// is suitable for capturing an SkPicture trace f
rom f
or further analysis.
/// is suitable for capturing an SkPicture trace for further analysis.
///
/// For example, if you want a trace of all pictures that could not be
/// renderered by the rasterizer within the frame boundary (and hence caused
...
...
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