diff --git a/packages/flutter/lib/src/gestures/constants.dart b/packages/flutter/lib/src/gestures/constants.dart index 84ae26cdd5..9db80a02e0 100644 --- a/packages/flutter/lib/src/gestures/constants.dart +++ b/packages/flutter/lib/src/gestures/constants.dart @@ -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); diff --git a/packages/flutter/lib/src/material/bottom_sheet.dart b/packages/flutter/lib/src/material/bottom_sheet.dart index 4a72bf936b..82bd26a564 100644 --- a/packages/flutter/lib/src/material/bottom_sheet.dart +++ b/packages/flutter/lib/src/material/bottom_sheet.dart @@ -485,7 +485,8 @@ class _ModalBottomSheetRoute extends PopupRoute { } } -// 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. diff --git a/packages/flutter/lib/src/material/button_theme.dart b/packages/flutter/lib/src/material/button_theme.dart index f7dc177583..84e9cb040c 100644 --- a/packages/flutter/lib/src/material/button_theme.dart +++ b/packages/flutter/lib/src/material/button_theme.dart @@ -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. /// diff --git a/packages/flutter/lib/src/material/data_table.dart b/packages/flutter/lib/src/material/data_table.dart index 89b031c032..aa2028e081 100644 --- a/packages/flutter/lib/src/material/data_table.dart +++ b/packages/flutter/lib/src/material/data_table.dart @@ -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) diff --git a/packages/flutter/lib/src/material/floating_action_button_location.dart b/packages/flutter/lib/src/material/floating_action_button_location.dart index 65c9f3622f..19721039f8 100644 --- a/packages/flutter/lib/src/material/floating_action_button_location.dart +++ b/packages/flutter/lib/src/material/floating_action_button_location.dart @@ -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. /// diff --git a/packages/flutter/lib/src/material/input_decorator.dart b/packages/flutter/lib/src/material/input_decorator.dart index b08d6ebc01..b08f986234 100644 --- a/packages/flutter/lib/src/material/input_decorator.dart +++ b/packages/flutter/lib/src/material/input_decorator.dart @@ -1489,7 +1489,7 @@ class _RenderDecoration extends RenderBox { bool hitTestChildren(BoxHitTestResult result, { @required Offset position }) { assert(position != null); for (final RenderBox child in _children) { - // TODO(hansmuller): label must be handled specially since we've transformed it + // The label must be handled specially since we've transformed it. final Offset offset = _boxParentData(child).offset; final bool isHit = result.addWithPaintOffset( offset: offset, diff --git a/packages/flutter/lib/src/material/paginated_data_table.dart b/packages/flutter/lib/src/material/paginated_data_table.dart index be25acd6ae..941a2ca499 100644 --- a/packages/flutter/lib/src/material/paginated_data_table.dart +++ b/packages/flutter/lib/src/material/paginated_data_table.dart @@ -345,7 +345,6 @@ class PaginatedDataTableState extends State { // 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 { 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, diff --git a/packages/flutter/lib/src/material/progress_indicator.dart b/packages/flutter/lib/src/material/progress_indicator.dart index c112d492b6..3f6d51b941 100644 --- a/packages/flutter/lib/src/material/progress_indicator.dart +++ b/packages/flutter/lib/src/material/progress_indicator.dart @@ -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 diff --git a/packages/flutter/lib/src/material/reorderable_list.dart b/packages/flutter/lib/src/material/reorderable_list.dart index 67023f4b0d..e11ca12731 100644 --- a/packages/flutter/lib/src/material/reorderable_list.dart +++ b/packages/flutter/lib/src/material/reorderable_list.dart @@ -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; diff --git a/packages/flutter/lib/src/material/scaffold.dart b/packages/flutter/lib/src/material/scaffold.dart index 86bdd734a4..41cfb555df 100644 --- a/packages/flutter/lib/src/material/scaffold.dart +++ b/packages/flutter/lib/src/material/scaffold.dart @@ -2547,7 +2547,8 @@ class ScaffoldFeatureController { 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. diff --git a/packages/flutter/lib/src/material/selectable_text.dart b/packages/flutter/lib/src/material/selectable_text.dart index 455c2dd337..4652e1dbff 100644 --- a/packages/flutter/lib/src/material/selectable_text.dart +++ b/packages/flutter/lib/src/material/selectable_text.dart @@ -31,7 +31,7 @@ class _TextSpanEditingController extends TextEditingController { @override TextSpan buildTextSpan({TextStyle style ,bool withComposing}) { - // TODO(chunhtai): Implement composing. + // This does not care about composing. return TextSpan( style: style, children: [_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(); } } diff --git a/packages/flutter/lib/src/material/snack_bar.dart b/packages/flutter/lib/src/material/snack_bar.dart index 9c6656b014..09c934e708 100644 --- a/packages/flutter/lib/src/material/snack_bar.dart +++ b/packages/flutter/lib/src/material/snack_bar.dart @@ -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); diff --git a/packages/flutter/lib/src/material/tabs.dart b/packages/flutter/lib/src/material/tabs.dart index 92ae8ca9e8..41eb80f253 100644 --- a/packages/flutter/lib/src/material/tabs.dart +++ b/packages/flutter/lib/src/material/tabs.dart @@ -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. diff --git a/packages/flutter/lib/src/material/theme.dart b/packages/flutter/lib/src/material/theme.dart index af351520e3..7a32098592 100644 --- a/packages/flutter/lib/src/material/theme.dart +++ b/packages/flutter/lib/src/material/theme.dart @@ -253,7 +253,7 @@ class _AnimatedThemeState extends AnimatedWidgetBaseState { @override void forEachTween(TweenVisitor 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); } diff --git a/packages/flutter/lib/src/material/theme_data.dart b/packages/flutter/lib/src/material/theme_data.dart index 2f8675733a..142e76e63f 100644 --- a/packages/flutter/lib/src/material/theme_data.dart +++ b/packages/flutter/lib/src/material/theme_data.dart @@ -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]; diff --git a/packages/flutter/lib/src/widgets/async.dart b/packages/flutter/lib/src/widgets/async.dart index b3787f2ff5..5880bbb97e 100644 --- a/packages/flutter/lib/src/widgets/async.dart +++ b/packages/flutter/lib/src/widgets/async.dart @@ -645,7 +645,7 @@ class StreamBuilder extends StreamBuilderBase> { /// } /// ``` /// {@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 extends StatefulWidget { /// Creates a widget that builds itself based on the latest snapshot of /// interaction with a [Future].