docimports for cupertino (#151149)

Part of https://github.com/flutter/flutter/issues/150800

Cupertino is fully clean after this!
This commit is contained in:
Michael Goderbauer 2024-07-02 10:30:39 -07:00 committed by GitHub
parent 82aaf3b44c
commit 3cf357ac7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
34 changed files with 173 additions and 11 deletions

View File

@ -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';

View File

@ -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.
///

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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.
///

View File

@ -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;

View File

@ -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';

View File

@ -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';

View File

@ -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;

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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,

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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;

View File

@ -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<T> {
final ValueGetter<bool> getIsActive;
final ValueGetter<bool> 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.
//

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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.
///

View File

@ -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;

View File

@ -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;

View File

@ -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';

View File

@ -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';

View File

@ -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';