From 3cf357ac7bd83363c76b69f8ef53760432780944 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Tue, 2 Jul 2024 10:30:39 -0700 Subject: [PATCH] docimports for cupertino (#151149) Part of https://github.com/flutter/flutter/issues/150800 Cupertino is fully clean after this! --- .../adaptive_text_selection_toolbar.dart | 3 +++ packages/flutter/lib/src/cupertino/app.dart | 9 +++++++- .../lib/src/cupertino/bottom_tab_bar.dart | 4 ++++ .../flutter/lib/src/cupertino/button.dart | 3 +++ .../flutter/lib/src/cupertino/checkbox.dart | 6 ++++++ .../flutter/lib/src/cupertino/colors.dart | 6 ++++++ .../flutter/lib/src/cupertino/constants.dart | 3 +++ .../lib/src/cupertino/context_menu.dart | 3 +++ .../lib/src/cupertino/date_picker.dart | 4 ++++ .../desktop_text_selection_toolbar.dart | 6 ++++++ .../flutter/lib/src/cupertino/dialog.dart | 6 ++++++ .../flutter/lib/src/cupertino/form_row.dart | 3 +++ .../lib/src/cupertino/form_section.dart | 4 ++++ .../lib/src/cupertino/list_section.dart | 6 ++++++ .../flutter/lib/src/cupertino/list_tile.dart | 7 +++++++ .../lib/src/cupertino/localizations.dart | 5 +++++ .../flutter/lib/src/cupertino/magnifier.dart | 3 +++ .../flutter/lib/src/cupertino/nav_bar.dart | 14 ++++++++----- .../lib/src/cupertino/page_scaffold.dart | 6 ++++++ .../flutter/lib/src/cupertino/picker.dart | 4 ++++ packages/flutter/lib/src/cupertino/radio.dart | 7 +++++++ .../flutter/lib/src/cupertino/refresh.dart | 6 ++++++ packages/flutter/lib/src/cupertino/route.dart | 21 +++++++++++++++---- .../flutter/lib/src/cupertino/scrollbar.dart | 3 +++ .../cupertino/sliding_segmented_control.dart | 3 +++ .../spell_check_suggestions_toolbar.dart | 3 +++ .../flutter/lib/src/cupertino/switch.dart | 3 +++ .../lib/src/cupertino/tab_scaffold.dart | 7 +++++++ .../flutter/lib/src/cupertino/tab_view.dart | 5 ++++- .../flutter/lib/src/cupertino/text_field.dart | 3 +++ .../src/cupertino/text_selection_toolbar.dart | 3 +++ .../flutter/lib/src/cupertino/text_theme.dart | 4 ++++ packages/flutter/lib/src/cupertino/theme.dart | 7 +++++++ .../lib/src/cupertino/thumb_painter.dart | 4 ++++ 34 files changed, 173 insertions(+), 11 deletions(-) diff --git a/packages/flutter/lib/src/cupertino/adaptive_text_selection_toolbar.dart b/packages/flutter/lib/src/cupertino/adaptive_text_selection_toolbar.dart index 0f88c306d3..04cda95e1f 100644 --- a/packages/flutter/lib/src/cupertino/adaptive_text_selection_toolbar.dart +++ b/packages/flutter/lib/src/cupertino/adaptive_text_selection_toolbar.dart @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/material.dart'; +library; + import 'package:flutter/foundation.dart' show defaultTargetPlatform; import 'package:flutter/rendering.dart'; import 'package:flutter/widgets.dart'; diff --git a/packages/flutter/lib/src/cupertino/app.dart b/packages/flutter/lib/src/cupertino/app.dart index 061e6ed1fc..729f2d3ee1 100644 --- a/packages/flutter/lib/src/cupertino/app.dart +++ b/packages/flutter/lib/src/cupertino/app.dart @@ -2,6 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/material.dart'; +/// @docImport 'package:flutter/services.dart'; +/// +/// @docImport 'page_scaffold.dart'; +/// @docImport 'tab_view.dart'; +library; + import 'package:flutter/gestures.dart'; import 'package:flutter/widgets.dart'; @@ -250,7 +257,7 @@ class CupertinoApp extends StatefulWidget { /// /// When a named route is pushed with [Navigator.pushNamed], the route name is /// looked up in this map. If the name is present, the associated - /// [widgets.WidgetBuilder] is used to construct a [CupertinoPageRoute] that + /// [WidgetBuilder] is used to construct a [CupertinoPageRoute] that /// performs an appropriate transition, including [Hero] animations, to the /// new route. /// diff --git a/packages/flutter/lib/src/cupertino/bottom_tab_bar.dart b/packages/flutter/lib/src/cupertino/bottom_tab_bar.dart index 6dd1bf3786..857bc34788 100644 --- a/packages/flutter/lib/src/cupertino/bottom_tab_bar.dart +++ b/packages/flutter/lib/src/cupertino/bottom_tab_bar.dart @@ -2,6 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'tab_scaffold.dart'; +/// @docImport 'tab_view.dart'; +library; + import 'dart:ui' show ImageFilter; import 'package:flutter/foundation.dart'; diff --git a/packages/flutter/lib/src/cupertino/button.dart b/packages/flutter/lib/src/cupertino/button.dart index 692b8cdb20..3bef0324fb 100644 --- a/packages/flutter/lib/src/cupertino/button.dart +++ b/packages/flutter/lib/src/cupertino/button.dart @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'nav_bar.dart'; +library; + import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; diff --git a/packages/flutter/lib/src/cupertino/checkbox.dart b/packages/flutter/lib/src/cupertino/checkbox.dart index a123dc0a8f..a5d6e30724 100644 --- a/packages/flutter/lib/src/cupertino/checkbox.dart +++ b/packages/flutter/lib/src/cupertino/checkbox.dart @@ -2,6 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/material.dart'; +/// +/// @docImport 'slider.dart'; +/// @docImport 'switch.dart'; +library; + import 'package:flutter/widgets.dart'; import 'colors.dart'; diff --git a/packages/flutter/lib/src/cupertino/colors.dart b/packages/flutter/lib/src/cupertino/colors.dart index a3ec013734..e08f241abd 100644 --- a/packages/flutter/lib/src/cupertino/colors.dart +++ b/packages/flutter/lib/src/cupertino/colors.dart @@ -2,6 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/widgets.dart'; +/// +/// @docImport 'button.dart'; +/// @docImport 'nav_bar.dart'; +library; + import 'dart:ui' show Brightness, Color; import '../../foundation.dart'; diff --git a/packages/flutter/lib/src/cupertino/constants.dart b/packages/flutter/lib/src/cupertino/constants.dart index 2831c50bd2..141e91c56c 100644 --- a/packages/flutter/lib/src/cupertino/constants.dart +++ b/packages/flutter/lib/src/cupertino/constants.dart @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/material.dart'; +library; + /// The minimum dimension of any interactive region according to the iOS Human /// Interface Guidelines. /// diff --git a/packages/flutter/lib/src/cupertino/context_menu.dart b/packages/flutter/lib/src/cupertino/context_menu.dart index d57fad1dde..d8a5da91cd 100644 --- a/packages/flutter/lib/src/cupertino/context_menu.dart +++ b/packages/flutter/lib/src/cupertino/context_menu.dart @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'context_menu_action.dart'; +library; + import 'dart:math' as math; import 'dart:ui' as ui; diff --git a/packages/flutter/lib/src/cupertino/date_picker.dart b/packages/flutter/lib/src/cupertino/date_picker.dart index 76266b3817..ea68b32790 100644 --- a/packages/flutter/lib/src/cupertino/date_picker.dart +++ b/packages/flutter/lib/src/cupertino/date_picker.dart @@ -2,6 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'route.dart'; +/// @docImport 'text_theme.dart'; +library; + import 'dart:math' as math; import 'package:flutter/scheduler.dart'; diff --git a/packages/flutter/lib/src/cupertino/desktop_text_selection_toolbar.dart b/packages/flutter/lib/src/cupertino/desktop_text_selection_toolbar.dart index a72f2ae6aa..4dcae06028 100644 --- a/packages/flutter/lib/src/cupertino/desktop_text_selection_toolbar.dart +++ b/packages/flutter/lib/src/cupertino/desktop_text_selection_toolbar.dart @@ -2,6 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/material.dart'; +/// +/// @docImport 'adaptive_text_selection_toolbar.dart'; +/// @docImport 'desktop_text_selection_toolbar_button.dart'; +library; + import 'dart:ui'; import 'package:flutter/foundation.dart'; diff --git a/packages/flutter/lib/src/cupertino/dialog.dart b/packages/flutter/lib/src/cupertino/dialog.dart index 22c41631fd..1806f54ec3 100644 --- a/packages/flutter/lib/src/cupertino/dialog.dart +++ b/packages/flutter/lib/src/cupertino/dialog.dart @@ -2,6 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/material.dart'; +/// +/// @docImport 'button.dart'; +/// @docImport 'route.dart'; +library; + import 'dart:math' as math; import 'dart:ui' show ImageFilter; diff --git a/packages/flutter/lib/src/cupertino/form_row.dart b/packages/flutter/lib/src/cupertino/form_row.dart index cec1b504a2..d1ef7b561b 100644 --- a/packages/flutter/lib/src/cupertino/form_row.dart +++ b/packages/flutter/lib/src/cupertino/form_row.dart @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'form_section.dart'; +library; + import 'package:flutter/widgets.dart'; import 'colors.dart'; diff --git a/packages/flutter/lib/src/cupertino/form_section.dart b/packages/flutter/lib/src/cupertino/form_section.dart index 6824a96d0d..aaa1703e20 100644 --- a/packages/flutter/lib/src/cupertino/form_section.dart +++ b/packages/flutter/lib/src/cupertino/form_section.dart @@ -2,6 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'form_row.dart'; +/// @docImport 'text_form_field_row.dart'; +library; + import 'package:flutter/widgets.dart'; import 'colors.dart'; diff --git a/packages/flutter/lib/src/cupertino/list_section.dart b/packages/flutter/lib/src/cupertino/list_section.dart index 35eef68060..189a026f8a 100644 --- a/packages/flutter/lib/src/cupertino/list_section.dart +++ b/packages/flutter/lib/src/cupertino/list_section.dart @@ -2,6 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'form_row.dart'; +/// @docImport 'form_section.dart'; +/// @docImport 'list_tile.dart'; +/// @docImport 'text_form_field_row.dart'; +library; + import 'package:flutter/widgets.dart'; import 'colors.dart'; diff --git a/packages/flutter/lib/src/cupertino/list_tile.dart b/packages/flutter/lib/src/cupertino/list_tile.dart index 4ba883f718..b9c3eba425 100644 --- a/packages/flutter/lib/src/cupertino/list_tile.dart +++ b/packages/flutter/lib/src/cupertino/list_tile.dart @@ -2,6 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/material.dart'; +/// +/// @docImport 'button.dart'; +/// @docImport 'list_section.dart'; +/// @docImport 'switch.dart'; +library; + import 'dart:async'; import 'package:flutter/widgets.dart'; diff --git a/packages/flutter/lib/src/cupertino/localizations.dart b/packages/flutter/lib/src/cupertino/localizations.dart index bbe65d1b3c..76968a68d5 100644 --- a/packages/flutter/lib/src/cupertino/localizations.dart +++ b/packages/flutter/lib/src/cupertino/localizations.dart @@ -2,6 +2,11 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'bottom_tab_bar.dart'; +/// @docImport 'date_picker.dart'; +/// @docImport 'search_field.dart'; +library; + import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; diff --git a/packages/flutter/lib/src/cupertino/magnifier.dart b/packages/flutter/lib/src/cupertino/magnifier.dart index fb20960aaa..7fc97f6f81 100644 --- a/packages/flutter/lib/src/cupertino/magnifier.dart +++ b/packages/flutter/lib/src/cupertino/magnifier.dart @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/material.dart'; +library; + import 'dart:math' as math; import 'package:flutter/widgets.dart'; diff --git a/packages/flutter/lib/src/cupertino/nav_bar.dart b/packages/flutter/lib/src/cupertino/nav_bar.dart index 2eb9ba7add..524f650d51 100644 --- a/packages/flutter/lib/src/cupertino/nav_bar.dart +++ b/packages/flutter/lib/src/cupertino/nav_bar.dart @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'refresh.dart'; +library; + import 'dart:math' as math; import 'dart:ui' show ImageFilter; @@ -1693,12 +1696,13 @@ class _TransitionableNavigationBar extends StatelessWidget { /// Similarly, the `bottomNavBar` parameter is the nav bar that was at the /// bottom regardless of the push/pop direction. /// -/// If [MediaQuery.padding] is still present in this widget's [BuildContext], -/// that padding will become part of the transitional navigation bar as well. +/// If [MediaQueryData.padding] is still present in this widget's +/// [BuildContext], that padding will become part of the transitional navigation +/// bar as well. /// -/// [MediaQuery.padding] should be consistent between the from/to routes and -/// the Hero overlay. Inconsistent [MediaQuery.padding] will produce undetermined -/// results. +/// [MediaQueryData.padding] should be consistent between the from/to routes and +/// the Hero overlay. Inconsistent [MediaQueryData.padding] will produce +/// undetermined results. class _NavigationBarTransition extends StatelessWidget { _NavigationBarTransition({ required this.animation, diff --git a/packages/flutter/lib/src/cupertino/page_scaffold.dart b/packages/flutter/lib/src/cupertino/page_scaffold.dart index 7eec24d908..6ef9239be0 100644 --- a/packages/flutter/lib/src/cupertino/page_scaffold.dart +++ b/packages/flutter/lib/src/cupertino/page_scaffold.dart @@ -2,6 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'button.dart'; +/// @docImport 'nav_bar.dart'; +/// @docImport 'tab_scaffold.dart'; +/// @docImport 'route.dart'; +library; + import 'package:flutter/widgets.dart'; import 'colors.dart'; diff --git a/packages/flutter/lib/src/cupertino/picker.dart b/packages/flutter/lib/src/cupertino/picker.dart index 88a70f1cc8..5d2f318b68 100644 --- a/packages/flutter/lib/src/cupertino/picker.dart +++ b/packages/flutter/lib/src/cupertino/picker.dart @@ -2,6 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'route.dart'; +/// @docImport 'text_theme.dart'; +library; + import 'package:flutter/foundation.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter/services.dart'; diff --git a/packages/flutter/lib/src/cupertino/radio.dart b/packages/flutter/lib/src/cupertino/radio.dart index 8fd59cbe84..9ef3b83e44 100644 --- a/packages/flutter/lib/src/cupertino/radio.dart +++ b/packages/flutter/lib/src/cupertino/radio.dart @@ -2,6 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/material.dart'; +/// +/// @docImport 'checkbox.dart'; +/// @docImport 'slider.dart'; +/// @docImport 'switch.dart'; +library; + import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; diff --git a/packages/flutter/lib/src/cupertino/refresh.dart b/packages/flutter/lib/src/cupertino/refresh.dart index f3da83b980..4d77ecf71d 100644 --- a/packages/flutter/lib/src/cupertino/refresh.dart +++ b/packages/flutter/lib/src/cupertino/refresh.dart @@ -2,6 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/material.dart'; +/// +/// @docImport 'app.dart'; +/// @docImport 'nav_bar.dart'; +library; + import 'dart:math'; import 'package:flutter/foundation.dart' show clampDouble; diff --git a/packages/flutter/lib/src/cupertino/route.dart b/packages/flutter/lib/src/cupertino/route.dart index ce625a6c15..83d915a044 100644 --- a/packages/flutter/lib/src/cupertino/route.dart +++ b/packages/flutter/lib/src/cupertino/route.dart @@ -2,6 +2,19 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'dart:ui'; +/// +/// @docImport 'package:flutter/material.dart'; +/// @docImport 'package:flutter/services.dart'; +/// +/// @docImport 'app.dart'; +/// @docImport 'button.dart'; +/// @docImport 'dialog.dart'; +/// @docImport 'nav_bar.dart'; +/// @docImport 'page_scaffold.dart'; +/// @docImport 'tab_scaffold.dart'; +library; + import 'dart:math'; import 'dart:ui' show ImageFilter, lerpDouble; @@ -769,14 +782,14 @@ class _CupertinoBackGestureController { final ValueGetter getIsActive; final ValueGetter getIsCurrent; - /// The drag gesture has changed by [fractionalDelta]. The total range of the - /// drag should be 0.0 to 1.0. + /// The drag gesture has changed by [delta]. The total range of the drag + /// should be 0.0 to 1.0. void dragUpdate(double delta) { controller.value -= delta; } - /// The drag gesture has ended with a horizontal motion of - /// [fractionalVelocity] as a fraction of screen width per second. + /// The drag gesture has ended with a horizontal motion of [velocity] as a + /// fraction of screen width per second. void dragEnd(double velocity) { // Fling in the appropriate direction. // diff --git a/packages/flutter/lib/src/cupertino/scrollbar.dart b/packages/flutter/lib/src/cupertino/scrollbar.dart index 45e9a7f2c7..bdedb4e91e 100644 --- a/packages/flutter/lib/src/cupertino/scrollbar.dart +++ b/packages/flutter/lib/src/cupertino/scrollbar.dart @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/material.dart'; +library; + import 'package:flutter/services.dart'; import 'package:flutter/widgets.dart'; diff --git a/packages/flutter/lib/src/cupertino/sliding_segmented_control.dart b/packages/flutter/lib/src/cupertino/sliding_segmented_control.dart index 682523f318..0eead27f7e 100644 --- a/packages/flutter/lib/src/cupertino/sliding_segmented_control.dart +++ b/packages/flutter/lib/src/cupertino/sliding_segmented_control.dart @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'dart:collection'; +library; + import 'dart:math' as math; import 'package:flutter/foundation.dart'; diff --git a/packages/flutter/lib/src/cupertino/spell_check_suggestions_toolbar.dart b/packages/flutter/lib/src/cupertino/spell_check_suggestions_toolbar.dart index 2e100c1387..cbd839e48c 100644 --- a/packages/flutter/lib/src/cupertino/spell_check_suggestions_toolbar.dart +++ b/packages/flutter/lib/src/cupertino/spell_check_suggestions_toolbar.dart @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/material.dart'; +library; + import 'package:flutter/scheduler.dart'; import 'package:flutter/services.dart' show SelectionChangedCause, SuggestionSpan; import 'package:flutter/widgets.dart'; diff --git a/packages/flutter/lib/src/cupertino/switch.dart b/packages/flutter/lib/src/cupertino/switch.dart index 609e69d37b..992a77b608 100644 --- a/packages/flutter/lib/src/cupertino/switch.dart +++ b/packages/flutter/lib/src/cupertino/switch.dart @@ -5,6 +5,9 @@ // Examples can assume: // bool _giveVerse = false; +/// @docImport 'package:flutter/material.dart'; +library; + import 'dart:ui' show lerpDouble; import 'package:flutter/foundation.dart'; diff --git a/packages/flutter/lib/src/cupertino/tab_scaffold.dart b/packages/flutter/lib/src/cupertino/tab_scaffold.dart index 8995abfe5d..224e7edba4 100644 --- a/packages/flutter/lib/src/cupertino/tab_scaffold.dart +++ b/packages/flutter/lib/src/cupertino/tab_scaffold.dart @@ -2,6 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/services.dart'; +/// +/// @docImport 'page_scaffold.dart'; +/// @docImport 'route.dart'; +/// @docImport 'tab_view.dart'; +library; + import 'package:flutter/widgets.dart'; import 'bottom_tab_bar.dart'; diff --git a/packages/flutter/lib/src/cupertino/tab_view.dart b/packages/flutter/lib/src/cupertino/tab_view.dart index b08bcdda8f..c9b2818399 100644 --- a/packages/flutter/lib/src/cupertino/tab_view.dart +++ b/packages/flutter/lib/src/cupertino/tab_view.dart @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'tab_scaffold.dart'; +library; + import 'package:flutter/widgets.dart'; import 'app.dart' show CupertinoApp; @@ -88,7 +91,7 @@ class CupertinoTabView extends StatefulWidget { /// /// When a named route is pushed with [Navigator.pushNamed] inside this tab view, /// the route name is looked up in this map. If the name is present, - /// the associated [widgets.WidgetBuilder] is used to construct a + /// the associated [WidgetBuilder] is used to construct a /// [CupertinoPageRoute] that performs an appropriate transition to the new /// route. /// diff --git a/packages/flutter/lib/src/cupertino/text_field.dart b/packages/flutter/lib/src/cupertino/text_field.dart index d769703bbd..c5d3497be4 100644 --- a/packages/flutter/lib/src/cupertino/text_field.dart +++ b/packages/flutter/lib/src/cupertino/text_field.dart @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/material.dart'; +library; + import 'dart:ui' as ui show BoxHeightStyle, BoxWidthStyle; import 'package:flutter/foundation.dart' show defaultTargetPlatform; diff --git a/packages/flutter/lib/src/cupertino/text_selection_toolbar.dart b/packages/flutter/lib/src/cupertino/text_selection_toolbar.dart index 2672cc2588..133936411d 100644 --- a/packages/flutter/lib/src/cupertino/text_selection_toolbar.dart +++ b/packages/flutter/lib/src/cupertino/text_selection_toolbar.dart @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/material.dart'; +library; + import 'dart:collection'; import 'dart:math' as math show pi; import 'dart:ui' as ui; diff --git a/packages/flutter/lib/src/cupertino/text_theme.dart b/packages/flutter/lib/src/cupertino/text_theme.dart index b325148ab1..08f34fbaf9 100644 --- a/packages/flutter/lib/src/cupertino/text_theme.dart +++ b/packages/flutter/lib/src/cupertino/text_theme.dart @@ -2,6 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'interface_level.dart'; +/// @docImport 'theme.dart'; +library; + import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; diff --git a/packages/flutter/lib/src/cupertino/theme.dart b/packages/flutter/lib/src/cupertino/theme.dart index 300022a4f1..75d68d8489 100644 --- a/packages/flutter/lib/src/cupertino/theme.dart +++ b/packages/flutter/lib/src/cupertino/theme.dart @@ -2,6 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/material.dart'; +/// +/// @docImport 'app.dart'; +/// @docImport 'button.dart'; +/// @docImport 'switch.dart'; +library; + import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; diff --git a/packages/flutter/lib/src/cupertino/thumb_painter.dart b/packages/flutter/lib/src/cupertino/thumb_painter.dart index 08f43f63ba..86bfdedbb4 100644 --- a/packages/flutter/lib/src/cupertino/thumb_painter.dart +++ b/packages/flutter/lib/src/cupertino/thumb_painter.dart @@ -2,6 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'switch.dart'; +/// @docImport 'slider.dart'; +library; + import 'package:flutter/painting.dart'; import 'colors.dart';