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
bf8208cd
Unverified
Commit
bf8208cd
authored
May 06, 2020
by
Kate Lovett
Committed by
GitHub
May 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ToDo Audit - Material Library+ (#55789)
parent
e1e300bb
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
22 additions
and
27 deletions
+22
-27
constants.dart
packages/flutter/lib/src/gestures/constants.dart
+1
-1
bottom_sheet.dart
packages/flutter/lib/src/material/bottom_sheet.dart
+2
-1
button_theme.dart
packages/flutter/lib/src/material/button_theme.dart
+0
-4
data_table.dart
packages/flutter/lib/src/material/data_table.dart
+4
-3
floating_action_button_location.dart
...ter/lib/src/material/floating_action_button_location.dart
+0
-1
input_decorator.dart
packages/flutter/lib/src/material/input_decorator.dart
+1
-1
paginated_data_table.dart
packages/flutter/lib/src/material/paginated_data_table.dart
+2
-2
progress_indicator.dart
packages/flutter/lib/src/material/progress_indicator.dart
+0
-2
reorderable_list.dart
packages/flutter/lib/src/material/reorderable_list.dart
+0
-2
scaffold.dart
packages/flutter/lib/src/material/scaffold.dart
+2
-1
selectable_text.dart
packages/flutter/lib/src/material/selectable_text.dart
+3
-2
snack_bar.dart
packages/flutter/lib/src/material/snack_bar.dart
+3
-3
tabs.dart
packages/flutter/lib/src/material/tabs.dart
+1
-1
theme.dart
packages/flutter/lib/src/material/theme.dart
+1
-1
theme_data.dart
packages/flutter/lib/src/material/theme_data.dart
+1
-1
async.dart
packages/flutter/lib/src/widgets/async.dart
+1
-1
No files found.
packages/flutter/lib/src/gestures/constants.dart
View file @
bf8208cd
...
...
@@ -26,7 +26,7 @@ const Duration kLongPressTimeout = Duration(milliseconds: 500);
/// The maximum time from the start of the first tap to the start of the second
/// tap in a double-tap gesture.
//
TODO(ianh):
In Android, this is actually the time from the first's up event
// In Android, this is actually the time from the first's up event
// to the second's down event, according to the ViewConfiguration docs.
const
Duration
kDoubleTapTimeout
=
Duration
(
milliseconds:
300
);
...
...
packages/flutter/lib/src/material/bottom_sheet.dart
View file @
bf8208cd
...
...
@@ -485,7 +485,8 @@ class _ModalBottomSheetRoute<T> extends PopupRoute<T> {
}
}
// TODO(guidezpl): Look into making this public. A copy of this class is in scaffold.dart, for now.
// TODO(guidezpl): Look into making this public. A copy of this class is in
// scaffold.dart, for now, https://github.com/flutter/flutter/issues/51627
/// A curve that progresses linearly until a specified [startingPoint], at which
/// point [curve] will begin. Unlike [Interval], [curve] will not start at zero,
/// but will use [startingPoint] as the Y position.
...
...
packages/flutter/lib/src/material/button_theme.dart
View file @
bf8208cd
...
...
@@ -120,10 +120,6 @@ class ButtonTheme extends InheritedTheme {
})
:
assert
(
data
!=
null
),
super
(
key:
key
,
child:
child
);
// TODO(darrenaustin): remove after this deprecation warning has been on
// stable for a couple of releases.
// See https://github.com/flutter/flutter/issues/37333
//
/// Creates a button theme that is appropriate for button bars, as used in
/// dialog footers and in the headers of data tables.
///
...
...
packages/flutter/lib/src/material/data_table.dart
View file @
bf8208cd
...
...
@@ -289,7 +289,6 @@ class DataCell {
/// ```
///
/// {@end-tool}
// TODO(ianh): Also suggest [ScrollingDataTable] once we have it.
///
/// See also:
///
...
...
@@ -543,7 +542,8 @@ class DataTable extends StatelessWidget {
alignment:
numeric
?
Alignment
.
centerRight
:
AlignmentDirectional
.
centerStart
,
child:
AnimatedDefaultTextStyle
(
style:
TextStyle
(
// TODO(ianh): font family should match Theme; see https://github.com/flutter/flutter/issues/3116
// TODO(hansmuller): This should use the information provided by
// textTheme/DataTableTheme, https://github.com/flutter/flutter/issues/56079
fontWeight:
FontWeight
.
w500
,
fontSize:
_headingFontSize
,
height:
math
.
min
(
1.0
,
headingRowHeight
/
_headingFontSize
),
...
...
@@ -596,7 +596,8 @@ class DataTable extends StatelessWidget {
alignment:
numeric
?
Alignment
.
centerRight
:
AlignmentDirectional
.
centerStart
,
child:
DefaultTextStyle
(
style:
TextStyle
(
// TODO(ianh): font family should be Roboto; see https://github.com/flutter/flutter/issues/3116
// TODO(hansmuller): This should use the information provided by
// textTheme/DataTableTheme, https://github.com/flutter/flutter/issues/56079
fontSize:
13.0
,
color:
isLightTheme
?
(
placeholder
?
Colors
.
black38
:
Colors
.
black87
)
...
...
packages/flutter/lib/src/material/floating_action_button_location.dart
View file @
bf8208cd
...
...
@@ -9,7 +9,6 @@ import 'package:flutter/widgets.dart';
import
'scaffold.dart'
;
// TODO(hmuller): should be device dependent.
/// The margin that a [FloatingActionButton] should leave between it and the
/// edge of the screen.
///
...
...
packages/flutter/lib/src/material/input_decorator.dart
View file @
bf8208cd
...
...
@@ -1489,7 +1489,7 @@ class _RenderDecoration extends RenderBox {
bool
hitTestChildren
(
BoxHitTestResult
result
,
{
@required
Offset
position
})
{
assert
(
position
!=
null
);
for
(
final
RenderBox
child
in
_children
)
{
// T
ODO(hansmuller): label must be handled specially since we've transformed it
// T
he label must be handled specially since we've transformed it.
final
Offset
offset
=
_boxParentData
(
child
).
offset
;
final
bool
isHit
=
result
.
addWithPaintOffset
(
offset:
offset
,
...
...
packages/flutter/lib/src/material/paginated_data_table.dart
View file @
bf8208cd
...
...
@@ -345,7 +345,6 @@ class PaginatedDataTableState extends State<PaginatedDataTable> {
// around each button on each side, and the button itself will have 8
// pixels internally on each side, yet we want the left edge of the
// inside of the button to line up with the 24.0 left inset.
// TODO(ianh): Better magic. See https://github.com/flutter/flutter/issues/4460
startPadding
=
12.0
;
}
}
else
{
...
...
@@ -486,7 +485,8 @@ class PaginatedDataTableState extends State<PaginatedDataTable> {
opacity:
0.54
),
child:
Container
(
// TODO(bkonyi): this won't handle text zoom correctly, https://github.com/flutter/flutter/issues/48522
// TODO(bkonyi): this won't handle text zoom correctly,
// https://github.com/flutter/flutter/issues/48522
height:
56.0
,
child:
SingleChildScrollView
(
dragStartBehavior:
widget
.
dragStartBehavior
,
...
...
packages/flutter/lib/src/material/progress_indicator.dart
View file @
bf8208cd
...
...
@@ -13,8 +13,6 @@ import 'theme.dart';
const
double
_kMinCircularProgressIndicatorSize
=
36.0
;
const
int
_kIndeterminateLinearDuration
=
1800
;
// TODO(hansmuller): implement the support for buffer indicator
/// A base class for material design progress indicators.
///
/// This widget cannot be instantiated directly. For a linear progress
...
...
packages/flutter/lib/src/material/reorderable_list.dart
View file @
bf8208cd
...
...
@@ -384,8 +384,6 @@ class _ReorderableListContentState extends State<_ReorderableListContent> with T
if
(
startIndex
!=
endIndex
)
widget
.
onReorder
(
startIndex
,
endIndex
);
// Animates leftover space in the drop area closed.
// TODO(djshuckerow): bring the animation in line with the Material
// specifications.
_ghostController
.
reverse
(
from:
0.1
);
_entranceController
.
reverse
(
from:
0.1
);
_dragging
=
null
;
...
...
packages/flutter/lib/src/material/scaffold.dart
View file @
bf8208cd
...
...
@@ -2547,7 +2547,8 @@ class ScaffoldFeatureController<T extends Widget, U> {
final
StateSetter
setState
;
}
// TODO(guidezpl): Look into making this public. A copy of this class is in bottom_sheet.dart, for now.
// TODO(guidezpl): Look into making this public. A copy of this class is in
// bottom_sheet.dart, for now, https://github.com/flutter/flutter/issues/51627
/// A curve that progresses linearly until a specified [startingPoint], at which
/// point [curve] will begin. Unlike [Interval], [curve] will not start at zero,
/// but will use [startingPoint] as the Y position.
...
...
packages/flutter/lib/src/material/selectable_text.dart
View file @
bf8208cd
...
...
@@ -31,7 +31,7 @@ class _TextSpanEditingController extends TextEditingController {
@override
TextSpan
buildTextSpan
({
TextStyle
style
,
bool
withComposing
})
{
// T
ODO(chunhtai): Implemen
t composing.
// T
his does not care abou
t composing.
return
TextSpan
(
style:
style
,
children:
<
TextSpan
>[
_textSpan
],
...
...
@@ -40,7 +40,8 @@ class _TextSpanEditingController extends TextEditingController {
@override
set
text
(
String
newText
)
{
// TODO(chunhtai): Implement value editing.
// This should never be reached.
throw
UnimplementedError
();
}
}
...
...
packages/flutter/lib/src/material/snack_bar.dart
View file @
bf8208cd
...
...
@@ -18,9 +18,9 @@ const double _singleLineVerticalPadding = 14.0;
// TODO(ianh): We should check if the given text and actions are going to fit on
// one line or not, and if they are, use the single-line layout, and if not, use
// the multiline layout
. See link above.
//
TODO(ianh): Implement the Tablet version of snackbar if we're "on a tablet"
.
// the multiline layout
, https://github.com/flutter/flutter/issues/32782
// See https://material.io/components/snackbars#specs, 'Longer Action Text' does
//
not match spec
.
const
Duration
_snackBarTransitionDuration
=
Duration
(
milliseconds:
250
);
const
Duration
_snackBarDisplayDuration
=
Duration
(
milliseconds:
4000
);
...
...
packages/flutter/lib/src/material/tabs.dart
View file @
bf8208cd
...
...
@@ -70,7 +70,7 @@ class Tab extends StatelessWidget {
this
.
iconMargin
=
const
EdgeInsets
.
only
(
bottom:
10.0
),
this
.
child
,
})
:
assert
(
text
!=
null
||
child
!=
null
||
icon
!=
null
),
assert
(
!(
text
!=
null
&&
null
!=
child
)),
// TODO(goderbauer): https://github.com/dart-lang/sdk/issues/34180
assert
(
text
==
null
||
child
==
null
),
super
(
key:
key
);
/// The text to display as the tab's label.
...
...
packages/flutter/lib/src/material/theme.dart
View file @
bf8208cd
...
...
@@ -253,7 +253,7 @@ class _AnimatedThemeState extends AnimatedWidgetBaseState<AnimatedTheme> {
@override
void
forEachTween
(
TweenVisitor
<
dynamic
>
visitor
)
{
// TODO(ianh): Use constructor tear-offs when it becomes possible
// TODO(ianh): Use constructor tear-offs when it becomes possible
, https://github.com/dart-lang/sdk/issues/10659
_data
=
visitor
(
_data
,
widget
.
data
,
(
dynamic
value
)
=>
ThemeDataTween
(
begin:
value
as
ThemeData
))
as
ThemeDataTween
;
assert
(
_data
!=
null
);
}
...
...
packages/flutter/lib/src/material/theme_data.dart
View file @
bf8208cd
...
...
@@ -307,7 +307,7 @@ class ThemeData with Diagnosticable {
// Spec doesn't specify a dark theme secondaryHeaderColor, this is a guess.
secondaryHeaderColor
??=
isDark
?
Colors
.
grey
[
700
]
:
primarySwatch
[
50
];
textSelectionColor
??=
isDark
?
accentColor
:
primarySwatch
[
200
];
// TODO(
sandrasandeep): change to color provided by Material Design team
// TODO(
hansmuller): We need a TextFieldTheme to handle this instead, https://github.com/flutter/flutter/issues/56082
cursorColor
=
cursorColor
??
const
Color
.
fromRGBO
(
66
,
133
,
244
,
1.0
);
textSelectionHandleColor
??=
isDark
?
Colors
.
tealAccent
[
400
]
:
primarySwatch
[
300
];
backgroundColor
??=
isDark
?
Colors
.
grey
[
700
]
:
primarySwatch
[
200
];
...
...
packages/flutter/lib/src/widgets/async.dart
View file @
bf8208cd
...
...
@@ -645,7 +645,7 @@ class StreamBuilder<T> extends StreamBuilderBase<T, AsyncSnapshot<T>> {
/// }
/// ```
/// {@end-tool}
// TODO(ianh): remove unreachable code above once https://github.com/dart-lang/
linter/issues/1141
is fixed
// TODO(ianh): remove unreachable code above once https://github.com/dart-lang/
sdk/issues/35520
is fixed
class
FutureBuilder
<
T
>
extends
StatefulWidget
{
/// Creates a widget that builds itself based on the latest snapshot of
/// interaction with a [Future].
...
...
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