Enable dangling_library_doc_comments and library_annotations lints (#117365)

This commit is contained in:
Michael Goderbauer 2022-12-20 16:03:21 -08:00 committed by GitHub
parent de357647be
commit b308555ed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
516 changed files with 554 additions and 435 deletions

View File

@ -95,7 +95,7 @@ linter:
# - constant_identifier_names # needs an opt-out https://github.com/dart-lang/linter/issues/204 # - constant_identifier_names # needs an opt-out https://github.com/dart-lang/linter/issues/204
- control_flow_in_finally - control_flow_in_finally
- curly_braces_in_flow_control_structures - curly_braces_in_flow_control_structures
# - dangling_library_doc_comments # not yet tested - dangling_library_doc_comments
- depend_on_referenced_packages - depend_on_referenced_packages
- deprecated_consistency - deprecated_consistency
# - diagnostic_describe_all_properties # enabled only at the framework level (packages/flutter/lib) # - diagnostic_describe_all_properties # enabled only at the framework level (packages/flutter/lib)
@ -116,7 +116,7 @@ linter:
- iterable_contains_unrelated_type - iterable_contains_unrelated_type
# - join_return_with_assignment # not required by flutter style # - join_return_with_assignment # not required by flutter style
- leading_newlines_in_multiline_strings - leading_newlines_in_multiline_strings
# - library_annotations # not yet tested - library_annotations
- library_names - library_names
- library_prefixes - library_prefixes
- library_private_types_in_public_api - library_private_types_in_public_api

View File

@ -166,3 +166,4 @@
/// error (something about backticks) /// error (something about backticks)
/// this must be the last error, since it aborts parsing of this file /// this must be the last error, since it aborts parsing of this file
/// ``` /// ```
String? foo;

View File

@ -11,7 +11,9 @@
/// ```dart /// ```dart
/// print(x); /// print(x);
/// ``` /// ```
String? bar;
/// error: empty dart block /// error: empty dart block
/// ```dart /// ```dart
/// ``` /// ```
String? foo;

View File

@ -35,7 +35,7 @@
/// ``` /// ```
/// {@end-tool} /// {@end-tool}
/// ///
String? foo;
// Other comments // Other comments
// matchesGoldenFile('comment.png'); // matchesGoldenFile('comment.png');

View File

@ -6,6 +6,7 @@
// flutter_ignore_for_file: golden_tag (see analyze.dart) // flutter_ignore_for_file: golden_tag (see analyze.dart)
@Tags(<String>['some-other-tag']) @Tags(<String>['some-other-tag'])
library;
import 'package:test/test.dart'; import 'package:test/test.dart';

View File

@ -4,6 +4,7 @@
// The reduced test set tag is missing. This should fail analysis. // The reduced test set tag is missing. This should fail analysis.
@Tags(<String>['some-other-tag']) @Tags(<String>['some-other-tag'])
library;
import 'package:test/test.dart'; import 'package:test/test.dart';

View File

@ -29,7 +29,7 @@ const List<String> expectedMainErrors = <String>[
'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:161:7: (top-level declaration) (undefined_identifier)', 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:161:7: (top-level declaration) (undefined_identifier)',
'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:165: Found "```" in code but it did not match RegExp: pattern=^ */// *```dart\$ flags= so something is wrong. Line was: "/// ```"', 'dev/bots/test/analyze-snippet-code-test-input/known_broken_documentation.dart:165: Found "```" in code but it did not match RegExp: pattern=^ */// *```dart\$ flags= so something is wrong. Line was: "/// ```"',
'dev/bots/test/analyze-snippet-code-test-input/short_but_still_broken.dart:9:12: (statement) (invalid_assignment)', 'dev/bots/test/analyze-snippet-code-test-input/short_but_still_broken.dart:9:12: (statement) (invalid_assignment)',
'dev/bots/test/analyze-snippet-code-test-input/short_but_still_broken.dart:17:4: Empty ```dart block in snippet code.', 'dev/bots/test/analyze-snippet-code-test-input/short_but_still_broken.dart:18:4: Empty ```dart block in snippet code.',
]; ];
const List<String> expectedUiErrors = <String>[ const List<String> expectedUiErrors = <String>[

View File

@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// This script removes published archives from the cloud storage and the /// This script removes published archives from the cloud storage and the
/// corresponding JSON metadata file that the website uses to determine what /// corresponding JSON metadata file that the website uses to determine what
/// releases are available. /// releases are available.
@ -10,6 +9,7 @@
/// If asked to remove a release that is currently the release on that channel, /// If asked to remove a release that is currently the release on that channel,
/// it will replace that release with the next most recent release on that /// it will replace that release with the next most recent release on that
/// channel. /// channel.
library;
import 'dart:async'; import 'dart:async';
import 'dart:convert'; import 'dart:convert';

View File

@ -5,6 +5,7 @@
// This test clones the framework and downloads pre-built binaries; it sometimes // This test clones the framework and downloads pre-built binaries; it sometimes
// times out with the default 5 minutes: https://github.com/flutter/flutter/issues/100937 // times out with the default 5 minutes: https://github.com/flutter/flutter/issues/100937
@Timeout(Duration(minutes: 10)) @Timeout(Duration(minutes: 10))
library;
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:conductor_core/src/codesign.dart' show CodesignCommand; import 'package:conductor_core/src/codesign.dart' show CodesignCommand;

View File

@ -2,9 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Measure application memory usage after pausing and resuming the app
/// with the Android back button.
import 'package:flutter_devicelab/framework/devices.dart'; import 'package:flutter_devicelab/framework/devices.dart';
import 'package:flutter_devicelab/framework/framework.dart'; import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/framework/utils.dart'; import 'package:flutter_devicelab/framework/utils.dart';
@ -13,6 +10,8 @@ import 'package:flutter_devicelab/tasks/perf_tests.dart';
const String packageName = 'io.flutter.demo.gallery'; const String packageName = 'io.flutter.demo.gallery';
const String activityName = 'io.flutter.demo.gallery.MainActivity'; const String activityName = 'io.flutter.demo.gallery.MainActivity';
/// Measure application memory usage after pausing and resuming the app
/// with the Android back button.
class BackButtonMemoryTest extends MemoryTest { class BackButtonMemoryTest extends MemoryTest {
BackButtonMemoryTest() : super('${flutterDirectory.path}/dev/integration_tests/flutter_gallery', 'test_memory/back_button.dart', packageName); BackButtonMemoryTest() : super('${flutterDirectory.path}/dev/integration_tests/flutter_gallery', 'test_memory/back_button.dart', packageName);

View File

@ -2,6 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:path/path.dart' as path;
import '../localizations_utils.dart';
const String _kCommandName = 'gen_date_localizations.dart';
// Used to let _jsonToMap know what locale it's date symbols converting for.
// Date symbols for the Kannada locale ('kn') are handled specially because
// some of the strings contain characters that can crash Emacs on Linux.
// See packages/flutter_localizations/lib/src/l10n/README for more information.
String? currentLocale;
/// This program extracts localized date symbols and patterns from the intl /// This program extracts localized date symbols and patterns from the intl
/// package for the subset of locales supported by the flutter_localizations /// package for the subset of locales supported by the flutter_localizations
/// package. /// package.
@ -25,23 +41,6 @@
/// ``` /// ```
/// dart dev/tools/localization/bin/gen_date_localizations.dart --overwrite /// dart dev/tools/localization/bin/gen_date_localizations.dart --overwrite
/// ``` /// ```
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:path/path.dart' as path;
import '../localizations_utils.dart';
const String _kCommandName = 'gen_date_localizations.dart';
// Used to let _jsonToMap know what locale it's date symbols converting for.
// Date symbols for the Kannada locale ('kn') are handled specially because
// some of the strings contain characters that can crash Emacs on Linux.
// See packages/flutter_localizations/lib/src/l10n/README for more information.
String? currentLocale;
Future<void> main(List<String> rawArgs) async { Future<void> main(List<String> rawArgs) async {
checkCwdIsRepoRoot(_kCommandName); checkCwdIsRepoRoot(_kCommandName);

View File

@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Make `n` copies of flutter_gallery.
import 'dart:io'; import 'dart:io';
import 'package:args/args.dart'; import 'package:args/args.dart';
@ -12,6 +10,7 @@ import 'package:path/path.dart' as path;
/// If no `copies` param is passed in, we scale the generated app up to 60k lines. /// If no `copies` param is passed in, we scale the generated app up to 60k lines.
const int kTargetLineCount = 60 * 1024; const int kTargetLineCount = 60 * 1024;
/// Make `n` copies of flutter_gallery.
void main(List<String> args) { void main(List<String> args) {
// If we're run from the `tools` dir, set the cwd to the repo root. // If we're run from the `tools` dir, set the cwd to the repo root.
if (path.basename(Directory.current.path) == 'tools') { if (path.basename(Directory.current.path) == 'tools') {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [AboutListTile]. // Flutter code sample for [AboutListTile].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample [ActionChip]. // Flutter code sample [ActionChip].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [AnimatedIcon]. // Flutter code sample for [AnimatedIcon].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [AnimatedIcon]. // Flutter code sample for [AnimatedIcon].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [AppBar]. // Flutter code sample for [AppBar].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [AppBar]. // Flutter code sample for [AppBar].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [AppBar]. // Flutter code sample for [AppBar].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [AppBar]. // Flutter code sample for [AppBar].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [SliverAppBar]. // Flutter code sample for [SliverAppBar].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [SliverAppBar.medium]. // Flutter code sample for [SliverAppBar.medium].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [SliverAppBar.large]. // Flutter code sample for [SliverAppBar.large].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [Autocomplete]. // Flutter code sample for [Autocomplete].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [Autocomplete]. // Flutter code sample for [Autocomplete].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [MaterialBanner]. // Flutter code sample for [MaterialBanner].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [MaterialBanner]. // Flutter code sample for [MaterialBanner].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [BottomAppBar]. // Flutter code sample for [BottomAppBar].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [BottomNavigationBar]. // Flutter code sample for [BottomNavigationBar].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [BottomNavigationBar]. // Flutter code sample for [BottomNavigationBar].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [BottomNavigationBar]. // Flutter code sample for [BottomNavigationBar].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [showModalBottomSheet]. // Flutter code sample for [showModalBottomSheet].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [showModalBottomSheet]. // Flutter code sample for [showModalBottomSheet].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [ElevatedButton]. // Flutter code sample for [ElevatedButton].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [Card]. // Flutter code sample for [Card].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [Card]. // Flutter code sample for [Card].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [Card]. // Flutter code sample for [Card].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [Checkbox]. // Flutter code sample for [Checkbox].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [CheckboxListTile]. // Flutter code sample for [CheckboxListTile].
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart' show timeDilation; import 'package:flutter/scheduler.dart' show timeDilation;

View File

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

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [CheckboxListTile]. // Flutter code sample for [CheckboxListTile].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [DeletableChipAttributes.onDeleted]. // Flutter code sample for [DeletableChipAttributes.onDeleted].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [ActionChoice]. // Flutter code sample for [ActionChoice].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [DataTable]. // Flutter code sample for [DataTable].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [DataTable]. // Flutter code sample for [DataTable].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [showDatePicker]. // Flutter code sample for [showDatePicker].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [showDateRangePicker]. // Flutter code sample for [showDateRangePicker].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [AlertDialog]. // Flutter code sample for [AlertDialog].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [AlertDialog]. // Flutter code sample for [AlertDialog].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [Dialog]. // Flutter code sample for [Dialog].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [showDialog]. // Flutter code sample for [showDialog].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [showDialog]. // Flutter code sample for [showDialog].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [showDialog]. // Flutter code sample for [showDialog].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [Divider]. // Flutter code sample for [Divider].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [Divider]. // Flutter code sample for [Divider].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [VerticalDivider]. // Flutter code sample for [VerticalDivider].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [Divider]. // Flutter code sample for [Divider].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [DropdownButton]. // Flutter code sample for [DropdownButton].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [DropdownButton.selectedItemBuilder]. // Flutter code sample for [DropdownButton.selectedItemBuilder].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [DropdownButton.style]. // Flutter code sample for [DropdownButton.style].
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';

View File

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [DropdownMenu]s. The first dropdown menu has an outlined border // Flutter code sample for [DropdownMenu]s. The first dropdown menu has an outlined border
/// which is the default configuration, and the second one has a filled input decoration. // which is the default configuration, and the second one has a filled input decoration.
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [ElevatedButton]. // Flutter code sample for [ElevatedButton].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [ExpansionPanelList]. // Flutter code sample for [ExpansionPanelList].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [ExpansionPanelList.ExpansionPanelList.radio]. // Flutter code sample for [ExpansionPanelList.ExpansionPanelList.radio].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [ExpansionTile]. // Flutter code sample for [ExpansionTile].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [FilledButton]. // Flutter code sample for [FilledButton].
import 'package:flutter/material.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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// Flutter code sample for [FilterChip]. // Flutter code sample for [FilterChip].
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';

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