mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

* Update project.pbxproj files to say Flutter rather than Chromium Also, the templates now have an empty organization so that we don't cause people to give their apps a Flutter copyright. * Update the copyright notice checker to require a standard notice on all files * Update copyrights on Dart files. (This was a mechanical commit.) * Fix weird license headers on Dart files that deviate from our conventions; relicense Shrine. Some were already marked "The Flutter Authors", not clear why. Their dates have been normalized. Some were missing the blank line after the license. Some were randomly different in trivial ways for no apparent reason (e.g. missing the trailing period). * Clean up the copyrights in non-Dart files. (Manual edits.) Also, make sure templates don't have copyrights. * Fix some more ORGANIZATIONNAMEs
106 lines
2.7 KiB
Dart
106 lines
2.7 KiB
Dart
// Copyright 2014 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// This file is used by ../analyze-sample-code_test.dart, which depends on the
|
|
// precise contents (including especially the comments) of this file.
|
|
|
|
// Examples can assume:
|
|
// bool _visible = true;
|
|
// class _Text extends Text {
|
|
// const _Text(String text) : super(text);
|
|
// const _Text.__(String text) : super(text);
|
|
// }
|
|
|
|
/// A blabla that blabla its blabla blabla blabla.
|
|
///
|
|
/// Bla blabla blabla its blabla into an blabla blabla and then blabla the
|
|
/// blabla back into the blabla blabla blabla.
|
|
///
|
|
/// Bla blabla of blabla blabla than 0.0 and 1.0, this blabla is blabla blabla
|
|
/// blabla it blabla pirates blabla the blabla into of blabla blabla. Bla the
|
|
/// blabla 0.0, the penzance blabla is blabla not blabla at all. Bla the blabla
|
|
/// 1.0, the blabla is blabla blabla blabla an blabla blabla.
|
|
///
|
|
/// {@tool sample}
|
|
/// Bla blabla blabla some [Text] when the `_blabla` blabla blabla is true, and
|
|
/// blabla it when it is blabla:
|
|
///
|
|
/// ```dart
|
|
/// new Opacity(
|
|
/// opacity: _visible ? 1.0 : 0.0,
|
|
/// child: const Text('Poor wandering ones!'),
|
|
/// )
|
|
/// ```
|
|
/// {@end-tool}
|
|
///
|
|
/// {@tool dartpad --template=stateless_widget_material}
|
|
/// Bla blabla blabla some [Text] when the `_blabla` blabla blabla is true, and
|
|
/// blabla it when it is blabla:
|
|
///
|
|
/// ```dart preamble
|
|
/// bool _visible = true;
|
|
/// final GlobalKey globalKey = GlobalKey();
|
|
/// ```
|
|
///
|
|
/// ```dart
|
|
/// Widget build(BuildContext context) {
|
|
/// return Opacity(
|
|
/// key: globalKey,
|
|
/// opacity: _visible ? 1.0 : 0.0,
|
|
/// child: const Text('Poor wandering ones!'),
|
|
/// );
|
|
/// }
|
|
/// ```
|
|
/// {@end-tool}
|
|
///
|
|
/// {@tool sample}
|
|
/// Bla blabla blabla some [Text] when the `_blabla` blabla blabla is true, and
|
|
/// blabla finale blabla:
|
|
///
|
|
/// ```dart
|
|
/// new Opacity(
|
|
/// opacity: _visible ? 1.0 : 0.0,
|
|
/// child: const Text('Poor wandering ones!'),
|
|
/// )
|
|
/// ```
|
|
/// {@end-tool}
|
|
///
|
|
/// {@tool sample}
|
|
/// regular const constructor
|
|
///
|
|
/// ```dart
|
|
/// const Text('Poor wandering ones!')
|
|
/// ```
|
|
/// {@end-tool}
|
|
///
|
|
/// {@tool sample}
|
|
/// const private constructor
|
|
/// ```dart
|
|
/// const _Text('Poor wandering ones!')
|
|
/// ```
|
|
/// {@end-tool}
|
|
///
|
|
/// {@tool sample}
|
|
/// yet another const private constructor
|
|
/// ```dart
|
|
/// const _Text.__('Poor wandering ones!')
|
|
/// ```
|
|
/// {@end-tool}
|
|
///
|
|
/// {@tool sample}
|
|
/// const variable
|
|
///
|
|
/// ```dart
|
|
/// const text0 = Text('Poor wandering ones!');
|
|
/// ```
|
|
/// {@end-tool}
|
|
///
|
|
/// {@tool sample}
|
|
/// more const variables
|
|
///
|
|
/// ```dart
|
|
/// const text1 = _Text('Poor wandering ones!');
|
|
/// ```
|
|
/// {@end-tool}
|