Normalize examples (#111223)

This commit is contained in:
Greg Spencer
2022-09-09 14:17:11 -07:00
committed by GitHub
parent d63442c1da
commit e617d003fb
370 changed files with 991 additions and 924 deletions

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Action.Action.overridable
/// Flutter code sample for [Action.Action.overridable].
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
@@ -36,8 +36,8 @@ class CopyableText extends StatelessWidget {
shortcuts: const <ShortcutActivator, Intent> { SingleActivator(LogicalKeyboardKey.keyC, control: true) : copyTextIntent },
child: Actions(
actions: <Type, Action<Intent>> {
/// The Action is made overridable so the VerificationCodeGenerator
/// widget can override how copying is handled.
// The Action is made overridable so the VerificationCodeGenerator
// widget can override how copying is handled.
CopyTextIntent: Action<CopyTextIntent>.overridable(defaultAction: defaultCopyAction, context: context),
},
child: Focus(

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for ActionListener
/// Flutter code sample for [ActionListener].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Actions
/// Flutter code sample for [Actions].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FocusableActionDetector
/// Flutter code sample for [FocusableActionDetector].
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for AnimatedList
/// Flutter code sample for [AnimatedList].
import 'package:flutter/material.dart';
@@ -50,11 +50,10 @@ class _AnimatedListSampleState extends State<AnimatedListSample> {
);
}
// Used to build an item after it has been removed from the list. This
// method is needed because a removed item remains visible until its
// animation has completed (even though it's gone as far this ListModel is
// concerned). The widget will be used by the
// [AnimatedListState.removeItem] method's
// Used to build an item after it has been removed from the list. This method
// is needed because a removed item remains visible until its animation has
// completed (even though it's gone as far as this ListModel is concerned).
// The widget will be used by the [AnimatedListState.removeItem] method's
// [AnimatedListRemovedItemBuilder] parameter.
Widget _buildRemovedItem(
int item, BuildContext context, Animation<double> animation) {

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for SliverAnimatedList
/// Flutter code sample for [SliverAnimatedList].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for AnimatedSize
/// Flutter code sample for [AnimatedSize].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for AnimatedSwitcher
/// Flutter code sample for [AnimatedSwitcher].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for WidgetsApp
/// Flutter code sample for [WidgetsApp].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FutureBuilder
/// Flutter code sample for [FutureBuilder].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for StreamBuilder
/// Flutter code sample for [StreamBuilder].
import 'dart:async';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for RawAutocomplete
/// Flutter code sample for [RawAutocomplete].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for RawAutocomplete
/// Flutter code sample for [RawAutocomplete].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for RawAutocomplete
/// Flutter code sample for [RawAutocomplete].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for RawAutocomplete.focusNode
/// Flutter code sample for [RawAutocomplete.focusNode].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for AutofillGroup
/// Flutter code sample for [AutofillGroup].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for AbsorbPointer
/// Flutter code sample for [AbsorbPointer].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for AspectRatio
/// Flutter code sample for [AspectRatio].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for AspectRatio
/// Flutter code sample for [AspectRatio].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for AspectRatio
/// Flutter code sample for [AspectRatio].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for ClipRRect
/// Flutter code sample for [ClipRRect].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for ClipRRect
/// Flutter code sample for [ClipRRect].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for CustomMultiChildLayout
/// Flutter code sample for [CustomMultiChildLayout].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Expanded
/// Flutter code sample for [Expanded].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Expanded
/// Flutter code sample for [Expanded].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FittedBox
/// Flutter code sample for [FittedBox].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Flow
/// Flutter code sample for [Flow].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FractionallySizedBox
/// Flutter code sample for [FractionallySizedBox].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for IgnorePointer
/// Flutter code sample for [IgnorePointer].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for IndexedStack.
/// Flutter code sample for [IndexedStack.].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Listener
/// Flutter code sample for [Listener].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for MouseRegion
/// Flutter code sample for [MouseRegion].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for MouseRegion.onExit
/// Flutter code sample for [MouseRegion.onExit].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for MouseRegion.onExit
/// Flutter code sample for [MouseRegion.onExit].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Offstage
/// Flutter code sample for [Offstage].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for PhysicalShape
/// Flutter code sample for [PhysicalShape].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for WidgetBindingsObserver
/// Flutter code sample for [WidgetBindingsObserver].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for ColorFiltered
/// Flutter code sample for [ColorFiltered].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Dismissible
/// Flutter code sample for [Dismissible].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Draggable
/// Flutter code sample for [Draggable].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for EditableText.onChanged
/// Flutter code sample for [EditableText.onChanged].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for TextEditingController
/// Flutter code sample for [TextEditingController].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FocusNode
/// Flutter code sample for [FocusNode].
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FocusNode.unfocus
/// Flutter code sample for [FocusNode.unfocus].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Focus
/// Flutter code sample for [Focus].
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Focus
/// Flutter code sample for [Focus].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Focus
/// Flutter code sample for [Focus].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FocusScope
/// Flutter code sample for [FocusScope].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for FocusTraversalGroup
/// Flutter code sample for [FocusTraversalGroup].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for OrderedTraversalPolicy
/// Flutter code sample for [OrderedTraversalPolicy].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Form
/// Flutter code sample for [Form].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for BuildOwner
/// Flutter code sample for [BuildOwner].
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for ErrorWidget
/// Flutter code sample for [ErrorWidget].
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for GestureDetector
/// Flutter code sample for [GestureDetector].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for GestureDetector
/// Flutter code sample for [GestureDetector].
import 'package:flutter/material.dart';

View File

@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Flutter code sample for [GestureDetector].
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';

View File

@@ -2,13 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Flutter code sample for [KeyEventManager.keyMessageHandler].
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
// This example app demonstrates a use case of patching
// `KeyEventManager.keyMessageHandler`: be notified of key events that are not
// handled by any focus handlers (such as shortcuts).
void main() => runApp(
const MaterialApp(
home: Scaffold(
@@ -53,8 +51,8 @@ class FallbackDemoState extends State<FallbackDemo> {
constraints: const BoxConstraints(maxWidth: 500, maxHeight: 400),
child: Column(
children: <Widget>[
const Text('This area handles key pressses that are unhandled by any shortcuts by displaying them below. '
'Try text shortcuts such as Ctrl-A!'),
const Text('This area handles key presses that are unhandled by any shortcuts, by '
'displaying them below. Try text shortcuts such as Ctrl-A!'),
Text(_capture == null ? '' : '$_capture is not handled by shortcuts.'),
const TextField(decoration: InputDecoration(label: Text('Text field 1'))),
Shortcuts(
@@ -62,7 +60,9 @@ class FallbackDemoState extends State<FallbackDemo> {
const SingleActivator(LogicalKeyboardKey.keyQ): VoidCallbackIntent(() {}),
},
child: const TextField(
decoration: InputDecoration(label: Text('This field also considers key Q as a shortcut (that does nothing).')),
decoration: InputDecoration(
label: Text('This field also considers key Q as a shortcut (that does nothing).'),
),
),
),
],
@@ -75,7 +75,7 @@ class FallbackDemoState extends State<FallbackDemo> {
/// A node used by [FallbackKeyEventRegistrar] to register fallback key handlers.
///
/// This class must not be replaced by bare [KeyEventCallback] because Dart
/// does not allow comparing with `==` on annonymous functions (always returns
/// does not allow comparing with `==` on anonymous functions (always returns
/// false.)
class FallbackFocusNode {
FallbackFocusNode({required this.onKeyEvent});

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Hero
/// Flutter code sample for [Hero].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Hero
/// Flutter code sample for [Hero].
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Image.errorBuilder
/// Flutter code sample for [Image.errorBuilder].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Image.frameBuilder
/// Flutter code sample for [Image.frameBuilder].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Image.loadingBuilder
/// Flutter code sample for [Image.loadingBuilder].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for AnimatedAlign
/// Flutter code sample for [AnimatedAlign].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for AnimatedContainer
/// Flutter code sample for [AnimatedContainer].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for AnimatedFractionallySizedBox
/// Flutter code sample for [AnimatedFractionallySizedBox].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for AnimatedPadding
/// Flutter code sample for [AnimatedPadding].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for AnimatedPositioned
/// Flutter code sample for [AnimatedPositioned].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for AnimatedSlide
/// Flutter code sample for [AnimatedSlide].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for SliverAnimatedOpacity
/// Flutter code sample for [SliverAnimatedOpacity].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for InheritedModel
/// Flutter code sample for [InheritedModel].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for InheritedNotifier
/// Flutter code sample for [InheritedNotifier].
import 'dart:math' as math;
@@ -65,7 +65,8 @@ class MyStatefulWidget extends StatefulWidget {
State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
}
/// AnimationControllers can be created with `vsync: this` because of TickerProviderStateMixin.
/// [AnimationController]s can be created with `vsync: this` because of
/// [TickerProviderStateMixin].
class _MyStatefulWidgetState extends State<MyStatefulWidget>
with TickerProviderStateMixin {
late AnimationController _controller;

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for InheritedTheme
/// Flutter code sample for [InheritedTheme].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for InteractiveViewer
/// Flutter code sample for [InteractiveViewer].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for InteractiveViewer.builder
/// Flutter code sample for [InteractiveViewer.builder].
import 'package:flutter/material.dart';
import 'package:vector_math/vector_math_64.dart' show Quad, Vector3;
@@ -36,7 +36,8 @@ class _IVBuilderExampleState extends State<_IVBuilderExample> {
static const double _cellWidth = 160.0;
static const double _cellHeight = 80.0;
// Returns the axis aligned bounding box for the given Quad, which might not be axis aligned.
// Returns the axis aligned bounding box for the given Quad, which might not
// be axis aligned.
Rect axisAlignedBoundingBox(Quad quad) {
double xMin = quad.point0.x;
double xMax = quad.point0.x;

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for InteractiveViewer.constrained
/// Flutter code sample for [InteractiveViewer.constrained].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for InteractiveViewer.transformationController
/// Flutter code sample for [InteractiveViewer.transformationController].
import 'package:flutter/material.dart';
@@ -29,7 +29,8 @@ class MyStatefulWidget extends StatefulWidget {
State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
}
/// AnimationControllers can be created with `vsync: this` because of TickerProviderStateMixin.
/// [AnimationController]s can be created with `vsync: this` because of
/// [TickerProviderStateMixin].
class _MyStatefulWidgetState extends State<MyStatefulWidget>
with TickerProviderStateMixin {
final TransformationController _transformationController =

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for LayoutBuilder
/// Flutter code sample for [LayoutBuilder].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for MediaQueryData.systemGestureInsets
/// Flutter code sample for [MediaQueryData.systemGestureInsets].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Navigator
/// Flutter code sample for [Navigator].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Navigator.restorablePush
/// Flutter code sample for [Navigator.restorablePush].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Navigator.restorablePushAndRemoveUntil
/// Flutter code sample for [Navigator.restorablePushAndRemoveUntil].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Navigator.restorablePushReplacement
/// Flutter code sample for [Navigator.restorablePushReplacement].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for NavigatorState.restorablePush
/// Flutter code sample for [NavigatorState.restorablePush].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for NavigatorState.restorablePushAndRemoveUntil
/// Flutter code sample for [NavigatorState.restorablePushAndRemoveUntil].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for NavigatorState.restorablePushReplacement
/// Flutter code sample for [NavigatorState.restorablePushReplacement].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for RestorableRouteFuture
/// Flutter code sample for [RestorableRouteFuture].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for NestedScrollView
/// Flutter code sample for [NestedScrollView].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for NestedScrollView
/// Flutter code sample for [NestedScrollView].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for NestedScrollView
/// Flutter code sample for [NestedScrollView].
import 'package:flutter/material.dart';
@@ -44,11 +44,10 @@ class MyStatelessWidget extends StatelessWidget {
];
}, body: Builder(builder: (BuildContext context) {
return CustomScrollView(
// The "controller" and "primary" members should be left
// unset, so that the NestedScrollView can control this
// inner scroll view.
// If the "controller" property is set, then this scroll
// view will not be associated with the NestedScrollView.
// The "controller" and "primary" members should be left unset, so that
// the NestedScrollView can control this inner scroll view.
// If the "controller" property is set, then this scroll view will not
// be associated with the NestedScrollView.
slivers: <Widget>[
SliverOverlapInjector(
handle: NestedScrollView.sliverOverlapAbsorberHandleFor(context)),

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for NestedScrollViewState
/// Flutter code sample for [NestedScrollViewState].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Notification
/// Flutter code sample for [Notification].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for OverflowBar
/// Flutter code sample for [OverflowBar].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for Overlay
/// Flutter code sample for [Overlay].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for GlowingOverscrollIndicator
/// Flutter code sample for [GlowingOverscrollIndicator].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for GlowingOverscrollIndicator
/// Flutter code sample for [GlowingOverscrollIndicator].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for PageStorage
/// Flutter code sample for [PageStorage].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for PageView
/// Flutter code sample for [PageView].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for PreferredSize
/// Flutter code sample for [PreferredSize].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for RestorationMixin
/// Flutter code sample for [RestorationMixin].
import 'package:flutter/material.dart';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for RestorableValue
/// Flutter code sample for [RestorableValue].
import 'package:flutter/material.dart';

Some files were not shown because too many files have changed in this diff Show More