running formatter

This commit is contained in:
2026-01-15 17:34:56 -08:00
parent a962b1f3cf
commit 6634ebaf81
1180 changed files with 16714 additions and 16640 deletions
+1 -1
View File
@@ -19,6 +19,7 @@ A collection of Flutter packages maintained by @rodydavis.
| [signals_flutter](https://github.com/rodydavis/signals.dart/tree/main/packages/signals_flutter) | The signals library exposes four core functions which are the building blocks to model any business logic you can think of. | [![Pub](https://img.shields.io/pub/v/signals_flutter.svg?style=popout)](https://pub.dartlang.org/packages/signals_flutter) | | [signals_flutter](https://github.com/rodydavis/signals.dart/tree/main/packages/signals_flutter) | The signals library exposes four core functions which are the building blocks to model any business logic you can think of. | [![Pub](https://img.shields.io/pub/v/signals_flutter.svg?style=popout)](https://pub.dartlang.org/packages/signals_flutter) |
| [signals_hooks](https://github.com/rodydavis/signals.dart/tree/main/packages/signals_hooks) | flutter_hooks bindings for signals | [![Pub](https://img.shields.io/pub/v/signals_hooks.svg?style=popout)](https://pub.dartlang.org/packages/signals_hooks) | | [signals_hooks](https://github.com/rodydavis/signals.dart/tree/main/packages/signals_hooks) | flutter_hooks bindings for signals | [![Pub](https://img.shields.io/pub/v/signals_hooks.svg?style=popout)](https://pub.dartlang.org/packages/signals_hooks) |
| [signals_lint](https://github.com/rodydavis/signals.dart/tree/main/packages/signals_lint) | linter and developer tool for signals | [![Pub](https://img.shields.io/pub/v/signals_lint.svg?style=popout)](https://pub.dartlang.org/packages/signals_lint) | | [signals_lint](https://github.com/rodydavis/signals.dart/tree/main/packages/signals_lint) | linter and developer tool for signals | [![Pub](https://img.shields.io/pub/v/signals_lint.svg?style=popout)](https://pub.dartlang.org/packages/signals_lint) |
| [undo](./packages/undo) | A Undo/Redo Library for Flutter | [![Pub](https://img.shields.io/pub/v/undo.svg?style=popout)](https://pub.dartlang.org/packages/undo) |
## Experimental ## Experimental
@@ -66,6 +67,5 @@ A collection of Flutter packages maintained by @rodydavis.
| [settings_gen](./deprecated/settings_manager/packages/settings_gen) | Code generator for MobX that adds support for annotating your code with @observable, @computed, @action and also creating SettingsStore classes. | [![Pub](https://img.shields.io/pub/v/settings_gen.svg?style=popout)](https://pub.dartlang.org/packages/settings_gen) | | [settings_gen](./deprecated/settings_manager/packages/settings_gen) | Code generator for MobX that adds support for annotating your code with @observable, @computed, @action and also creating SettingsStore classes. | [![Pub](https://img.shields.io/pub/v/settings_gen.svg?style=popout)](https://pub.dartlang.org/packages/settings_gen) |
| [settings_manager](./deprecated/settings_manager/packages/settings_manager) | A settings manager built on top of SharedPreferences. | [![Pub](https://img.shields.io/pub/v/settings_manager.svg?style=popout)](https://pub.dartlang.org/packages/settings_manager) | | [settings_manager](./deprecated/settings_manager/packages/settings_manager) | A settings manager built on top of SharedPreferences. | [![Pub](https://img.shields.io/pub/v/settings_manager.svg?style=popout)](https://pub.dartlang.org/packages/settings_manager) |
| [sheet_music](./deprecated/sheet_music) | A Flutter Widget for Sheet Music (All Major Flat and Sharp Scales, Notes from 5 below and 5 above the bar, Treble and Bass Clef). | [![Pub](https://img.shields.io/pub/v/sheet_music.svg?style=popout)](https://pub.dartlang.org/packages/sheet_music) | | [sheet_music](./deprecated/sheet_music) | A Flutter Widget for Sheet Music (All Major Flat and Sharp Scales, Notes from 5 below and 5 above the bar, Treble and Bass Clef). | [![Pub](https://img.shields.io/pub/v/sheet_music.svg?style=popout)](https://pub.dartlang.org/packages/sheet_music) |
| [undo](./deprecated/undo) | A Undo/Redo Library for Flutter | [![Pub](https://img.shields.io/pub/v/undo.svg?style=popout)](https://pub.dartlang.org/packages/undo) |
| [widget_gen](./deprecated/widget_gen) | A Flutter Code Gen Package Used to Generate Widgets for WidgetStudio | [![Pub](https://img.shields.io/pub/v/widget_gen.svg?style=popout)](https://pub.dartlang.org/packages/widget_gen) | | [widget_gen](./deprecated/widget_gen) | A Flutter Code Gen Package Used to Generate Widgets for WidgetStudio | [![Pub](https://img.shields.io/pub/v/widget_gen.svg?style=popout)](https://pub.dartlang.org/packages/widget_gen) |
@@ -69,7 +69,8 @@ abstract class FirestoreHttpClient implements FirestoreClient {
Future<List<DocumentSnapshot>> listDocumentSnapshots(String path) async { Future<List<DocumentSnapshot>> listDocumentSnapshots(String path) async {
var list = <DocumentSnapshot>[]; var list = <DocumentSnapshot>[];
var result = await (getJsonList("$path", extract: 'documents') as FutureOr<List<dynamic>>); var result = await (getJsonList("$path", extract: 'documents')
as FutureOr<List<dynamic>>);
for (var item in result) { for (var item in result) {
list.add(new DocumentSnapshot(this, item)); list.add(new DocumentSnapshot(this, item));
@@ -21,14 +21,16 @@ class PushIdGenerator {
static int? _lastPushTime; static int? _lastPushTime;
static final List<int?> _lastRandChars = List<int?>.filled(12, null, growable: false); static final List<int?> _lastRandChars =
List<int?>.filled(12, null, growable: false);
static String generatePushChildName() { static String generatePushChildName() {
int now = DateTime.now().millisecondsSinceEpoch; int now = DateTime.now().millisecondsSinceEpoch;
final bool duplicateTime = (now == _lastPushTime); final bool duplicateTime = (now == _lastPushTime);
_lastPushTime = now; _lastPushTime = now;
final List<String?> timeStampChars = List<String?>.filled(8, null, growable: false); final List<String?> timeStampChars =
List<String?>.filled(8, null, growable: false);
for (int i = 7; i >= 0; i--) { for (int i = 7; i >= 0; i--) {
timeStampChars[i] = PUSH_CHARS[now % 64]; timeStampChars[i] = PUSH_CHARS[now % 64];
now = (now / 64).floor(); now = (now / 64).floor();
@@ -68,11 +68,13 @@ class _NativePagedListViewState extends State<PagedListView> {
} }
void _scrollListener() { void _scrollListener() {
if (_controller!.offset >= _controller!.position.maxScrollExtent && !_controller!.position.outOfRange) { if (_controller!.offset >= _controller!.position.maxScrollExtent &&
!_controller!.position.outOfRange) {
// Bottom of List // Bottom of List
widget.loadNext!(); widget.loadNext!();
} }
if (_controller!.offset <= _controller!.position.minScrollExtent && !_controller!.position.outOfRange) { if (_controller!.offset <= _controller!.position.minScrollExtent &&
!_controller!.position.outOfRange) {
// Top of List // Top of List
} }
} }
@@ -86,7 +88,11 @@ class _NativePagedListViewState extends State<PagedListView> {
controller: _controller, controller: _controller,
slivers: <Widget>[ slivers: <Widget>[
...?widget.slivers, ...?widget.slivers,
if (widget.onRefresh == null) SliverToBoxAdapter(child: Container()) else cupertino.CupertinoSliverRefreshControl(onRefresh: widget.onRefresh), if (widget.onRefresh == null)
SliverToBoxAdapter(child: Container())
else
cupertino.CupertinoSliverRefreshControl(
onRefresh: widget.onRefresh),
if (widget.isLoading != null && widget.rows.isEmpty) if (widget.isLoading != null && widget.rows.isEmpty)
Center(child: widget.isLoading) Center(child: widget.isLoading)
else else
@@ -102,7 +108,8 @@ class _NativePagedListViewState extends State<PagedListView> {
value: widget.rows[index].selected, value: widget.rows[index].selected,
onChanged: (bool? value) { onChanged: (bool? value) {
setState(() { setState(() {
widget.rows[index].onSelectChanged!(value); widget.rows[index]
.onSelectChanged!(value);
}); });
}, },
) )
@@ -157,13 +164,18 @@ class _NativePagedListViewState extends State<PagedListView> {
} }
_sortController = Scaffold.of(context).showBottomSheet((context) { _sortController = Scaffold.of(context).showBottomSheet((context) {
final List<DataColumn> _cols = widget.columns.where((c) => c.onSort != null).toList(); final List<DataColumn> _cols =
widget.columns.where((c) => c.onSort != null).toList();
final bool? _sortAsc = widget.sortAscending; final bool? _sortAsc = widget.sortAscending;
final int? selectedIndex = widget.sortColumnIndex; final int? selectedIndex = widget.sortColumnIndex;
return Container( return Container(
decoration: BoxDecoration( decoration: BoxDecoration(
color: Theme.of(context).brightness == Brightness.dark ? Colors.black38 : Colors.grey[200], color: Theme.of(context).brightness == Brightness.dark
borderRadius: const BorderRadius.only(topLeft: Radius.circular(20), topRight: Radius.circular(20))), ? Colors.black38
: Colors.grey[200],
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(20),
topRight: Radius.circular(20))),
child: SingleChildScrollView( child: SingleChildScrollView(
child: Column( child: Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
@@ -173,7 +185,9 @@ class _NativePagedListViewState extends State<PagedListView> {
dense: true, dense: true,
selected: selectedIndex == i, selected: selectedIndex == i,
title: _cols[i].label, title: _cols[i].label,
subtitle: Text(widget.sortAscending! ? 'Ascending' : 'Descending'), subtitle: Text(widget.sortAscending!
? 'Ascending'
: 'Descending'),
leading: Radio<int>( leading: Radio<int>(
groupValue: selectedIndex, groupValue: selectedIndex,
onChanged: (value) { onChanged: (value) {
@@ -184,7 +198,9 @@ class _NativePagedListViewState extends State<PagedListView> {
value: i, value: i,
), ),
trailing: IconButton( trailing: IconButton(
icon: Icon(_sortAsc! ? Icons.arrow_upward : Icons.arrow_downward), icon: Icon(_sortAsc!
? Icons.arrow_upward
: Icons.arrow_downward),
onPressed: () { onPressed: () {
_sortController!.setState!(() { _sortController!.setState!(() {
_cols[i].onSort!(i, !_sortAsc); _cols[i].onSort!(i, !_sortAsc);
@@ -254,7 +270,8 @@ class _NativePagedListViewState extends State<PagedListView> {
bool get rowsSelected => _selectedRowCount != 0; bool get rowsSelected => _selectedRowCount != 0;
int get _selectedRowCount => widget.rows.where((d) => d.selected).toSet().toList().length; int get _selectedRowCount =>
widget.rows.where((d) => d.selected).toSet().toList().length;
List<Widget> _buildMobileChildren(int index) { List<Widget> _buildMobileChildren(int index) {
List<Widget> _children = []; List<Widget> _children = [];
@@ -25,11 +25,17 @@ class StatelessDataTable extends StatelessWidget {
this.rowsPerPage = defaultRowsPerPage, this.rowsPerPage = defaultRowsPerPage,
this.handlePrevious, this.handlePrevious,
this.handleNext, this.handleNext,
this.availableRowsPerPage = const <int>[defaultRowsPerPage, defaultRowsPerPage * 2, defaultRowsPerPage * 5, defaultRowsPerPage * 10], this.availableRowsPerPage = const <int>[
defaultRowsPerPage,
defaultRowsPerPage * 2,
defaultRowsPerPage * 5,
defaultRowsPerPage * 10
],
this.onRowsPerPageChanged, this.onRowsPerPageChanged,
this.dragStartBehavior = DragStartBehavior.down, this.dragStartBehavior = DragStartBehavior.down,
}) : assert(columns.isNotEmpty), }) : assert(columns.isNotEmpty),
assert(sortColumnIndex == null || (sortColumnIndex >= 0 && sortColumnIndex < columns.length)), assert(sortColumnIndex == null ||
(sortColumnIndex >= 0 && sortColumnIndex < columns.length)),
assert(rowsPerPage > 0), assert(rowsPerPage > 0),
assert(() { assert(() {
if (onRowsPerPageChanged != null) { if (onRowsPerPageChanged != null) {
@@ -60,7 +66,11 @@ class StatelessDataTable extends StatelessWidget {
final bool rowCountApproximate; final bool rowCountApproximate;
final Map<int, DataRow> _rows = <int, DataRow>{}; final Map<int, DataRow> _rows = <int, DataRow>{};
DataRow _getBlankRowFor(int index) => DataRow.byIndex(index: index, cells: columns.map<DataCell>((DataColumn column) => DataCell.empty).toList()); DataRow _getBlankRowFor(int index) => DataRow.byIndex(
index: index,
cells: columns
.map<DataCell>((DataColumn column) => DataCell.empty)
.toList());
DataRow _getProgressIndicatorRowFor(int index) { DataRow _getProgressIndicatorRowFor(int index) {
bool haveProgressIndicator = false; bool haveProgressIndicator = false;
@@ -100,7 +110,8 @@ class StatelessDataTable extends StatelessWidget {
} }
//show no data //show no data
if (result.isEmpty) { if (result.isEmpty) {
var cells = columns.map<DataCell>((DataColumn column) => DataCell.empty).toList(); var cells =
columns.map<DataCell>((DataColumn column) => DataCell.empty).toList();
cells[cells.length ~/ 2] = const DataCell(Text('no data')); cells[cells.length ~/ 2] = const DataCell(Text('no data'));
result.add(DataRow.byIndex(index: 0, cells: cells)); result.add(DataRow.byIndex(index: 0, cells: cells));
} }
@@ -110,13 +121,15 @@ class StatelessDataTable extends StatelessWidget {
final GlobalKey _tableKey = GlobalKey(); final GlobalKey _tableKey = GlobalKey();
int get _selectedRowCount => rows.where((d) => d.selected).toSet().toList().length; int get _selectedRowCount =>
rows.where((d) => d.selected).toSet().toList().length;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
assert(debugCheckHasMaterialLocalizations(context)); assert(debugCheckHasMaterialLocalizations(context));
final ThemeData themeData = Theme.of(context); final ThemeData themeData = Theme.of(context);
final MaterialLocalizations localizations = MaterialLocalizations.of(context); final MaterialLocalizations localizations =
MaterialLocalizations.of(context);
final List<Widget> headerWidgets = <Widget>[]; final List<Widget> headerWidgets = <Widget>[];
double startPadding = 24; double startPadding = 24;
@@ -152,8 +165,9 @@ class StatelessDataTable extends StatelessWidget {
final TextStyle? footerTextStyle = themeData.textTheme.caption; final TextStyle? footerTextStyle = themeData.textTheme.caption;
final List<Widget> footerWidgets = <Widget>[]; final List<Widget> footerWidgets = <Widget>[];
if (onRowsPerPageChanged != null) { if (onRowsPerPageChanged != null) {
final List<Widget> _footerChildren = final List<Widget> _footerChildren = availableRowsPerPage
availableRowsPerPage.where((int value) => value <= rows.length || value == rowsPerPage).map<DropdownMenuItem<int>>((int value) { .where((int value) => value <= rows.length || value == rowsPerPage)
.map<DropdownMenuItem<int>>((int value) {
return DropdownMenuItem<int>(value: value, child: Text('$value')); return DropdownMenuItem<int>(value: value, child: Text('$value'));
}).toList(); }).toList();
footerWidgets.addAll(<Widget>[ footerWidgets.addAll(<Widget>[
@@ -177,7 +191,11 @@ class StatelessDataTable extends StatelessWidget {
} }
footerWidgets.addAll(<Widget>[ footerWidgets.addAll(<Widget>[
Container(width: 32), Container(width: 32),
Text(localizations.pageRowsInfoTitle(firstRowIndex + 1, firstRowIndex + rowsPerPage, totalItems ?? rows.length, rowCountApproximate)), Text(localizations.pageRowsInfoTitle(
firstRowIndex + 1,
firstRowIndex + rowsPerPage,
totalItems ?? rows.length,
rowCountApproximate)),
Container(width: 32), Container(width: 32),
IconButton( IconButton(
icon: const Icon(Icons.chevron_left), icon: const Icon(Icons.chevron_left),
@@ -189,7 +207,10 @@ class StatelessDataTable extends StatelessWidget {
icon: const Icon(Icons.chevron_right), icon: const Icon(Icons.chevron_right),
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
tooltip: localizations.nextPageTooltip, tooltip: localizations.nextPageTooltip,
onPressed: (!rowCountApproximate && (firstRowIndex + rowsPerPage >= (totalItems ?? rows.length))) ? null : handleNext), onPressed: (!rowCountApproximate &&
(firstRowIndex + rowsPerPage >= (totalItems ?? rows.length)))
? null
: handleNext),
Container(width: 14), Container(width: 14),
]); ]);
@@ -203,17 +224,24 @@ class StatelessDataTable extends StatelessWidget {
container: true, container: true,
child: DefaultTextStyle( child: DefaultTextStyle(
style: _selectedRowCount > 0 style: _selectedRowCount > 0
? themeData.textTheme.subtitle1!.copyWith(color: themeData.colorScheme.secondary) ? themeData.textTheme.subtitle1!
: themeData.textTheme.headline6!.copyWith(fontWeight: FontWeight.w400), .copyWith(color: themeData.colorScheme.secondary)
: themeData.textTheme.headline6!
.copyWith(fontWeight: FontWeight.w400),
child: IconTheme.merge( child: IconTheme.merge(
data: const IconThemeData(opacity: 0.54), data: const IconThemeData(opacity: 0.54),
child: ButtonTheme( child: ButtonTheme(
child: Ink( child: Ink(
height: 64, height: 64,
color: _selectedRowCount > 0 ? themeData.secondaryHeaderColor : null, color: _selectedRowCount > 0
? themeData.secondaryHeaderColor
: null,
child: Padding( child: Padding(
padding: EdgeInsetsDirectional.only(start: startPadding, end: 14), padding: EdgeInsetsDirectional.only(
child: Row(mainAxisAlignment: MainAxisAlignment.end, children: headerWidgets), start: startPadding, end: 14),
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: headerWidgets),
), ),
), ),
), ),
@@ -269,17 +297,24 @@ class StatelessDataTable extends StatelessWidget {
container: true, container: true,
child: DefaultTextStyle( child: DefaultTextStyle(
style: _selectedRowCount > 0 style: _selectedRowCount > 0
? themeData.textTheme.subtitle1!.copyWith(color: themeData.colorScheme.secondary) ? themeData.textTheme.subtitle1!
: themeData.textTheme.headline6!.copyWith(fontWeight: FontWeight.w400), .copyWith(color: themeData.colorScheme.secondary)
: themeData.textTheme.headline6!
.copyWith(fontWeight: FontWeight.w400),
child: IconTheme.merge( child: IconTheme.merge(
data: const IconThemeData(opacity: 0.54), data: const IconThemeData(opacity: 0.54),
child: ButtonTheme( child: ButtonTheme(
child: Ink( child: Ink(
height: 64, height: 64,
color: _selectedRowCount > 0 ? themeData.secondaryHeaderColor : null, color: _selectedRowCount > 0
? themeData.secondaryHeaderColor
: null,
child: Padding( child: Padding(
padding: EdgeInsetsDirectional.only(start: startPadding, end: 14), padding: EdgeInsetsDirectional.only(
child: Row(mainAxisAlignment: MainAxisAlignment.end, children: headerWidgets), start: startPadding, end: 14),
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: headerWidgets),
), ),
), ),
), ),
@@ -287,23 +322,23 @@ class StatelessDataTable extends StatelessWidget {
), ),
), ),
Expanded( Expanded(
flex: 8, flex: 8,
child: ScrollConfiguration( child: ScrollConfiguration(
behavior: CustomScrollBehavior(), behavior: CustomScrollBehavior(),
child: SingleChildScrollView(
scrollDirection: Axis.vertical,
child: SingleChildScrollView( child: SingleChildScrollView(
scrollDirection: Axis.vertical, scrollDirection: Axis.horizontal,
child: SingleChildScrollView( child: DataTable(
scrollDirection: Axis.horizontal, key: _tableKey,
child: DataTable( columns: columns,
key: _tableKey, sortColumnIndex: sortColumnIndex,
columns: columns, sortAscending: sortAscending,
sortColumnIndex: sortColumnIndex, onSelectAll: onSelectAll,
sortAscending: sortAscending, rows: _getRows(firstRowIndex, rowsPerPage)),
onSelectAll: onSelectAll,
rows: _getRows(firstRowIndex, rowsPerPage)),
),
), ),
), ),
),
), ),
DefaultTextStyle( DefaultTextStyle(
style: footerTextStyle!, style: footerTextStyle!,
@@ -82,7 +82,7 @@ class GridTabItem extends StatelessWidget {
], ],
); );
} }
return Column( return Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: <Widget>[ children: <Widget>[
+3 -1
View File
@@ -41,7 +41,9 @@ class _MyHomePageState extends State<MyHomePage> {
body: Center( body: Center(
child: _loading child: _loading
? CircularProgressIndicator() ? CircularProgressIndicator()
: _file == null ? Text('No File Selected') : _buildFile(_file), : _file == null
? Text('No File Selected')
: _buildFile(_file),
), ),
persistentFooterButtons: <Widget>[ persistentFooterButtons: <Widget>[
IconButton( IconButton(
+1 -1
View File
@@ -1,4 +1,4 @@
library file_access; library file_access;
export 'src/classes/file/file.dart'; export 'src/classes/file/file.dart';
export 'src/pick_file/pick_file.dart'; export 'src/pick_file/pick_file.dart';
+1 -1
View File
@@ -68,4 +68,4 @@ void printMembers(CompilationUnit unit) {
} }
} }
} }
} }
+1 -1
View File
@@ -3,4 +3,4 @@ export 'package:analyzer/src/dart/ast/ast.dart';
export 'package:analyzer/dart/analysis/utilities.dart'; export 'package:analyzer/dart/analysis/utilities.dart';
export 'package:analyzer/dart/ast/syntactic_entity.dart'; export 'package:analyzer/dart/ast/syntactic_entity.dart';
export 'package:_fe_analyzer_shared/src/scanner/token_impl.dart'; export 'package:_fe_analyzer_shared/src/scanner/token_impl.dart';
export 'package:analyzer/dart/analysis/results.dart'; export 'package:analyzer/dart/analysis/results.dart';
+1 -1
View File
@@ -7,7 +7,7 @@
// /// This is a doc comment // /// This is a doc comment
// class MyScreen extends StatelessWidget { // class MyScreen extends StatelessWidget {
// const MyScreen(this.position, {Key key, this.myField = false, this.mySecondField = 1, // const MyScreen(this.position, {Key key, this.myField = false, this.mySecondField = 1,
// this.numField = 3, // this.numField = 3,
// this.mapField = const {}, // this.mapField = const {},
// this.dateField, // this.dateField,
@@ -16,7 +16,8 @@ class NgDartCommanderRunner extends CommandRunner {
static const _verboseOption = 'verbose'; static const _verboseOption = 'verbose';
NgDartCommanderRunner() NgDartCommanderRunner()
: super('ngflutter', 'Ngflutter is a command line interface for Flutter.') { : super(
'ngflutter', 'Ngflutter is a command line interface for Flutter.') {
argParser.addFlag(_verboseOption, argParser.addFlag(_verboseOption,
abbr: 'v', abbr: 'v',
help: 'Output extra logging information.', help: 'Output extra logging information.',
@@ -4,7 +4,6 @@
// license that can be found in the LICENSE file or at // license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd // https://developers.google.com/open-source/licenses/bsd
import 'command.dart'; import 'command.dart';
import 'generate_test.dart'; import 'generate_test.dart';
import 'package:ngflutter/src/commands/generate_widget.dart'; import 'package:ngflutter/src/commands/generate_widget.dart';
@@ -30,9 +30,7 @@ class NewProjectCommand extends NgDartCommand {
'a new folder will be created unde this path for the project.', 'a new folder will be created unde this path for the project.',
defaultsTo: '.'); defaultsTo: '.');
argParser.addOption(_rootComponentOption, argParser.addOption(_rootComponentOption,
abbr: 'r', abbr: 'r', help: 'Class name of root component.', defaultsTo: 'Screen');
help: 'Class name of root component.',
defaultsTo: 'Screen');
} }
Future run() async { Future run() async {
@@ -26,7 +26,7 @@ class PackageUriResolver {
} catch (e) { } catch (e) {
throw new UsageException( throw new UsageException(
'Error when reading $_dotPackagesFilePath, ' 'Error when reading $_dotPackagesFilePath, '
'please run pub get first.', 'please run pub get first.',
''); '');
} }
@@ -49,7 +49,7 @@ class PackageUriResolver {
if (_packageMap[packageName] == null) { if (_packageMap[packageName] == null) {
throw new UsageException( throw new UsageException(
'Cannot locate $packageName, ' 'Cannot locate $packageName, '
'probably you need to run pub get again', 'probably you need to run pub get again',
''); '');
} }
@@ -29,7 +29,7 @@ class PageObjectData {
.map((element) => new _Variable.fromElement(element)) .map((element) => new _Variable.fromElement(element))
.where((variable) => variable != null) .where((variable) => variable != null)
.toList(growable: false) .toList(growable: false)
..sort(); ..sort();
return new PageObjectData._internal(document, variables); return new PageObjectData._internal(document, variables);
} }
@@ -105,8 +105,8 @@ String _getProjectName(String pubspecFilePath) {
} catch (e) { } catch (e) {
throw new UsageException( throw new UsageException(
'Error happened when reading pubspec.yaml. ' 'Error happened when reading pubspec.yaml. '
'Command generate test should be run ' 'Command generate test should be run '
'under root directory of the project.', 'under root directory of the project.',
''); '');
} }
var namePrefix = 'name:'; var namePrefix = 'name:';
@@ -33,7 +33,7 @@ void main() {
test('should generate items in parents list', () { test('should generate items in parents list', () {
var po = new PageObjectData( var po = new PageObjectData(
'<p *ngFor="xxx"><action-button class="good">' '<p *ngFor="xxx"><action-button class="good">'
'</action-button></p>', '</action-button></p>',
); );
expect(po.variables.first.getterString, expect(po.variables.first.getterString,
'Future<List<PageLoaderElement>> get good => _getGood();'); 'Future<List<PageLoaderElement>> get good => _getGood();');
@@ -53,13 +53,13 @@ void main() {
test('should sort generated items', () { test('should sort generated items', () {
var po1 = new PageObjectData( var po1 = new PageObjectData(
'<action-button class="good"></action-button>' '<action-button class="good"></action-button>'
'<action-button class="bad"></action-button>', '<action-button class="bad"></action-button>',
); );
expect(po1.variables.first.name, 'Bad'); expect(po1.variables.first.name, 'Bad');
expect(po1.variables.last.name, 'Good'); expect(po1.variables.last.name, 'Good');
var po2 = new PageObjectData( var po2 = new PageObjectData(
'<action-button class="good"></action-button>' '<action-button class="good"></action-button>'
'<action-button class="bad"></action-button>', '<action-button class="bad"></action-button>',
); );
expect(po2.variables.first.name, 'Bad'); expect(po2.variables.first.name, 'Bad');
expect(po2.variables.last.name, 'Good'); expect(po2.variables.last.name, 'Good');
@@ -91,8 +91,8 @@ void main() {
test('should choose correct selector.', () { test('should choose correct selector.', () {
var po = new PageObjectData( var po = new PageObjectData(
'<some-widget class="cool"></some-widget>' '<some-widget class="cool"></some-widget>'
'<some-widget class="cool" id="cooler"></some-widget>' '<some-widget class="cool" id="cooler"></some-widget>'
'<some-widget></some-widget>', '<some-widget></some-widget>',
); );
expect(po.variables.length, 3); expect(po.variables.length, 3);
expect(po.variables[0].selector.toString(), "@ByClass('cool')"); expect(po.variables[0].selector.toString(), "@ByClass('cool')");
@@ -103,7 +103,7 @@ void main() {
test('should work with selectors with attributes', () { test('should work with selectors with attributes', () {
var po = new PageObjectData( var po = new PageObjectData(
'<some-cell class="field-class"></some-cell>' '<some-cell class="field-class"></some-cell>'
'<some-cell id="fieldWithId"></some-cell>', '<some-cell id="fieldWithId"></some-cell>',
); );
expect(po.variables[0].selector.toString(), "@ByClass('field-class')"); expect(po.variables[0].selector.toString(), "@ByClass('field-class')");
expect(po.variables[1].selector.toString(), "@ById('fieldWithId')"); expect(po.variables[1].selector.toString(), "@ById('fieldWithId')");
@@ -10,9 +10,7 @@ abstract class WidgetPreferredSizedBase extends WidgetBase {
Size get preferredSize; Size get preferredSize;
} }
abstract class PropertyBase extends WidgetConfig { abstract class PropertyBase extends WidgetConfig {}
}
abstract class AcceptData { abstract class AcceptData {
Map<String, dynamic> get data; Map<String, dynamic> get data;
@@ -3,10 +3,10 @@ import 'package:flutter/material.dart';
export 'package:flutter/material.dart'; export 'package:flutter/material.dart';
abstract class BaseWidget extends Base { abstract class BaseWidget extends Base {
Widget render(BuildContext context); Widget render(BuildContext context);
} }
abstract class Base { abstract class Base {
String get description; String get description;
Map<String, dynamic> toJson(); Map<String, dynamic> toJson();
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AboutDialogBase extends BaseWidget { class AboutDialogBase extends BaseWidget {
AboutDialogBase(); AboutDialogBase();
factory AboutDialogBase.fromJson(Map<String, dynamic> data) { factory AboutDialogBase.fromJson(Map<String, dynamic> data) {
return AboutDialogBase(); return AboutDialogBase();
} }
@override @override
String get description => r""" String get description => r"""
An about box. This is a dialog box with the application's icon, name, An about box. This is a dialog box with the application's icon, name,
version number, and copyright, plus a button to show licenses for software version number, and copyright, plus a button to show licenses for software
used by the application. used by the application.
@@ -27,13 +27,13 @@ The licenses shown on the [LicensePage] are those returned by the
[LicenseRegistry] API, which can be used to add more licenses to the list. [LicenseRegistry] API, which can be used to add more licenses to the list.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AboutListTileBase extends BaseWidget { class AboutListTileBase extends BaseWidget {
AboutListTileBase(); AboutListTileBase();
factory AboutListTileBase.fromJson(Map<String, dynamic> data) { factory AboutListTileBase.fromJson(Map<String, dynamic> data) {
return AboutListTileBase(); return AboutListTileBase();
} }
@override @override
String get description => r""" String get description => r"""
A [ListTile] that shows an about box. A [ListTile] that shows an about box.
This widget is often added to an app's [Drawer]. When tapped it shows This widget is often added to an app's [Drawer]. When tapped it shows
@@ -93,13 +93,13 @@ uses an [AboutListTile], and the second uses the [showAboutDialog] function.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AbsorbPointerBase extends BaseWidget { class AbsorbPointerBase extends BaseWidget {
AbsorbPointerBase(); AbsorbPointerBase();
factory AbsorbPointerBase.fromJson(Map<String, dynamic> data) { factory AbsorbPointerBase.fromJson(Map<String, dynamic> data) {
return AbsorbPointerBase(); return AbsorbPointerBase();
} }
@override @override
String get description => r""" String get description => r"""
A widget that absorbs pointers during hit testing. A widget that absorbs pointers during hit testing.
When [absorbing] is true, this widget prevents its subtree from receiving When [absorbing] is true, this widget prevents its subtree from receiving
@@ -25,13 +25,13 @@ See also:
events but is itself invisible to hit testing. events but is itself invisible to hit testing.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AbstractNodeBase extends BaseWidget { class AbstractNodeBase extends BaseWidget {
AbstractNodeBase(); AbstractNodeBase();
factory AbstractNodeBase.fromJson(Map<String, dynamic> data) { factory AbstractNodeBase.fromJson(Map<String, dynamic> data) {
return AbstractNodeBase(); return AbstractNodeBase();
} }
@override @override
String get description => r""" String get description => r"""
An abstract node in a tree. An abstract node in a tree.
AbstractNode has as notion of depth, attachment, and parent, but does not AbstractNode has as notion of depth, attachment, and parent, but does not
@@ -42,13 +42,13 @@ moved to be a child of A, sibling of B, then the numbers won't change. C's
[adoptChild] and [dropChild] methods. [adoptChild] and [dropChild] methods.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,25 +1,25 @@
import '../base.dart'; import '../base.dart';
class AccumulatorBase extends BaseWidget { class AccumulatorBase extends BaseWidget {
AccumulatorBase(); AccumulatorBase();
factory AccumulatorBase.fromJson(Map<String, dynamic> data) { factory AccumulatorBase.fromJson(Map<String, dynamic> data) {
return AccumulatorBase(); return AccumulatorBase();
} }
@override @override
String get description => r""" String get description => r"""
Mutable wrapper of an integer that can be passed by reference to track a Mutable wrapper of an integer that can be passed by reference to track a
value across a recursive stack. value across a recursive stack.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class ActionChipBase extends BaseWidget { class ActionChipBase extends BaseWidget {
ActionChipBase(); ActionChipBase();
factory ActionChipBase.fromJson(Map<String, dynamic> data) { factory ActionChipBase.fromJson(Map<String, dynamic> data) {
return ActionChipBase(); return ActionChipBase();
} }
@override @override
String get description => r""" String get description => r"""
A material design action chip. A material design action chip.
Action chips are a set of options which trigger an action related to primary Action chips are a set of options which trigger an action related to primary
@@ -58,13 +58,13 @@ See also:
* <https://material.io/design/components/chips.html> * <https://material.io/design/components/chips.html>
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class ActionDispatcherBase extends BaseWidget { class ActionDispatcherBase extends BaseWidget {
ActionDispatcherBase(); ActionDispatcherBase();
factory ActionDispatcherBase.fromJson(Map<String, dynamic> data) { factory ActionDispatcherBase.fromJson(Map<String, dynamic> data) {
return ActionDispatcherBase(); return ActionDispatcherBase();
} }
@override @override
String get description => r""" String get description => r"""
An action dispatcher that simply invokes the actions given to it. An action dispatcher that simply invokes the actions given to it.
See also: See also:
@@ -19,13 +19,13 @@ See also:
an [Action]. an [Action].
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class ActionListenerBase extends BaseWidget { class ActionListenerBase extends BaseWidget {
ActionListenerBase(); ActionListenerBase();
factory ActionListenerBase.fromJson(Map<String, dynamic> data) { factory ActionListenerBase.fromJson(Map<String, dynamic> data) {
return ActionListenerBase(); return ActionListenerBase();
} }
@override @override
String get description => r""" String get description => r"""
A helper widget for making sure that listeners on an action are removed properly. A helper widget for making sure that listeners on an action are removed properly.
Listeners on the [Action] class must have their listener callbacks removed Listeners on the [Action] class must have their listener callbacks removed
@@ -22,13 +22,13 @@ this widget. If you are using an [Action] outside of a widget context, then
you must call removeListener yourself. you must call removeListener yourself.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class ActionsBase extends BaseWidget { class ActionsBase extends BaseWidget {
ActionsBase(); ActionsBase();
factory ActionsBase.fromJson(Map<String, dynamic> data) { factory ActionsBase.fromJson(Map<String, dynamic> data) {
return ActionsBase(); return ActionsBase();
} }
@override @override
String get description => r""" String get description => r"""
A widget that establishes an [ActionDispatcher] and a map of [Intent] to A widget that establishes an [ActionDispatcher] and a map of [Intent] to
[Action] to be used by its descendants when invoking an [Action]. [Action] to be used by its descendants when invoking an [Action].
@@ -25,13 +25,13 @@ See also:
* [Shortcuts], a widget used to bind key combinations to [Intent]s. * [Shortcuts], a widget used to bind key combinations to [Intent]s.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,24 +1,24 @@
import '../base.dart'; import '../base.dart';
class ActivateIntentBase extends BaseWidget { class ActivateIntentBase extends BaseWidget {
ActivateIntentBase(); ActivateIntentBase();
factory ActivateIntentBase.fromJson(Map<String, dynamic> data) { factory ActivateIntentBase.fromJson(Map<String, dynamic> data) {
return ActivateIntentBase(); return ActivateIntentBase();
} }
@override @override
String get description => r""" String get description => r"""
An intent that activates the currently focused control. An intent that activates the currently focused control.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AlertDialogBase extends BaseWidget { class AlertDialogBase extends BaseWidget {
AlertDialogBase(); AlertDialogBase();
factory AlertDialogBase.fromJson(Map<String, dynamic> data) { factory AlertDialogBase.fromJson(Map<String, dynamic> data) {
return AlertDialogBase(); return AlertDialogBase();
} }
@override @override
String get description => r""" String get description => r"""
A material design alert dialog. A material design alert dialog.
An alert dialog informs the user about situations that require An alert dialog informs the user about situations that require
@@ -80,13 +80,13 @@ See also:
* <https://material.io/design/components/dialogs.html#alert-dialog> * <https://material.io/design/components/dialogs.html#alert-dialog>
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AlignBase extends BaseWidget { class AlignBase extends BaseWidget {
AlignBase(); AlignBase();
factory AlignBase.fromJson(Map<String, dynamic> data) { factory AlignBase.fromJson(Map<String, dynamic> data) {
return AlignBase(); return AlignBase();
} }
@override @override
String get description => r""" String get description => r"""
A widget that aligns its child within itself and optionally sizes itself A widget that aligns its child within itself and optionally sizes itself
based on the child's size. based on the child's size.
@@ -139,13 +139,13 @@ See also:
* The [catalog of layout widgets](https://flutter.dev/widgets/layout/). * The [catalog of layout widgets](https://flutter.dev/widgets/layout/).
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AlignTransitionBase extends BaseWidget { class AlignTransitionBase extends BaseWidget {
AlignTransitionBase(); AlignTransitionBase();
factory AlignTransitionBase.fromJson(Map<String, dynamic> data) { factory AlignTransitionBase.fromJson(Map<String, dynamic> data) {
return AlignTransitionBase(); return AlignTransitionBase();
} }
@override @override
String get description => r""" String get description => r"""
Animated version of an [Align] that animates its [Align.alignment] property. Animated version of an [Align] that animates its [Align.alignment] property.
Here's an illustration of the [DecoratedBoxTransition] widget, with it's Here's an illustration of the [DecoratedBoxTransition] widget, with it's
@@ -31,13 +31,13 @@ See also:
relative to its normal position. relative to its normal position.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AlignmentBase extends BaseWidget { class AlignmentBase extends BaseWidget {
AlignmentBase(); AlignmentBase();
factory AlignmentBase.fromJson(Map<String, dynamic> data) { factory AlignmentBase.fromJson(Map<String, dynamic> data) {
return AlignmentBase(); return AlignmentBase();
} }
@override @override
String get description => r""" String get description => r"""
A point within a rectangle. A point within a rectangle.
`Alignment(0.0, 0.0)` represents the center of the rectangle. The distance `Alignment(0.0, 0.0)` represents the center of the rectangle. The distance
@@ -51,13 +51,13 @@ See also:
whether the horizontal direction depends on the [TextDirection]. whether the horizontal direction depends on the [TextDirection].
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AlignmentDirectionalBase extends BaseWidget { class AlignmentDirectionalBase extends BaseWidget {
AlignmentDirectionalBase(); AlignmentDirectionalBase();
factory AlignmentDirectionalBase.fromJson(Map<String, dynamic> data) { factory AlignmentDirectionalBase.fromJson(Map<String, dynamic> data) {
return AlignmentDirectionalBase(); return AlignmentDirectionalBase();
} }
@override @override
String get description => r""" String get description => r"""
An offset that's expressed as a fraction of a [Size], but whose horizontal An offset that's expressed as a fraction of a [Size], but whose horizontal
component is dependent on the writing direction. component is dependent on the writing direction.
@@ -22,13 +22,13 @@ See also:
whose horizontal component does not depend on the text direction). whose horizontal component does not depend on the text direction).
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AlignmentGeometryTweenBase extends BaseWidget { class AlignmentGeometryTweenBase extends BaseWidget {
AlignmentGeometryTweenBase(); AlignmentGeometryTweenBase();
factory AlignmentGeometryTweenBase.fromJson(Map<String, dynamic> data) { factory AlignmentGeometryTweenBase.fromJson(Map<String, dynamic> data) {
return AlignmentGeometryTweenBase(); return AlignmentGeometryTweenBase();
} }
@override @override
String get description => r""" String get description => r"""
An interpolation between two [AlignmentGeometry]. An interpolation between two [AlignmentGeometry].
This class specializes the interpolation of [Tween<AlignmentGeometry>] This class specializes the interpolation of [Tween<AlignmentGeometry>]
@@ -21,13 +21,13 @@ See also:
* [AlignmentTween], which interpolates between two [Alignment] objects. * [AlignmentTween], which interpolates between two [Alignment] objects.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AlignmentTweenBase extends BaseWidget { class AlignmentTweenBase extends BaseWidget {
AlignmentTweenBase(); AlignmentTweenBase();
factory AlignmentTweenBase.fromJson(Map<String, dynamic> data) { factory AlignmentTweenBase.fromJson(Map<String, dynamic> data) {
return AlignmentTweenBase(); return AlignmentTweenBase();
} }
@override @override
String get description => r""" String get description => r"""
An interpolation between two alignments. An interpolation between two alignments.
This class specializes the interpolation of [Tween<Alignment>] to be This class specializes the interpolation of [Tween<Alignment>] to be
@@ -22,13 +22,13 @@ See also:
[AlignmentGeometry] objects. [AlignmentGeometry] objects.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,15 @@
import '../base.dart'; import '../base.dart';
class AlwaysScrollableScrollPhysicsBase extends BaseWidget { class AlwaysScrollableScrollPhysicsBase extends BaseWidget {
AlwaysScrollableScrollPhysicsBase(); AlwaysScrollableScrollPhysicsBase();
factory AlwaysScrollableScrollPhysicsBase.fromJson(Map<String, dynamic> data) { factory AlwaysScrollableScrollPhysicsBase.fromJson(
return AlwaysScrollableScrollPhysicsBase(); Map<String, dynamic> data) {
} return AlwaysScrollableScrollPhysicsBase();
}
@override @override
String get description => r""" String get description => r"""
Scroll physics that always lets the user scroll. Scroll physics that always lets the user scroll.
This overrides the default behavior which is to disable scrolling This overrides the default behavior which is to disable scrolling
@@ -29,13 +30,13 @@ See also:
found on Android. found on Android.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,26 +1,26 @@
import '../base.dart'; import '../base.dart';
class AlwaysStoppedAnimationBase extends BaseWidget { class AlwaysStoppedAnimationBase extends BaseWidget {
AlwaysStoppedAnimationBase(); AlwaysStoppedAnimationBase();
factory AlwaysStoppedAnimationBase.fromJson(Map<String, dynamic> data) { factory AlwaysStoppedAnimationBase.fromJson(Map<String, dynamic> data) {
return AlwaysStoppedAnimationBase(); return AlwaysStoppedAnimationBase();
} }
@override @override
String get description => r""" String get description => r"""
An animation that is always stopped at a given value. An animation that is always stopped at a given value.
The [status] is always [AnimationStatus.forward]. The [status] is always [AnimationStatus.forward].
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,24 +1,24 @@
import '../base.dart'; import '../base.dart';
class AndroidMotionEventBase extends BaseWidget { class AndroidMotionEventBase extends BaseWidget {
AndroidMotionEventBase(); AndroidMotionEventBase();
factory AndroidMotionEventBase.fromJson(Map<String, dynamic> data) { factory AndroidMotionEventBase.fromJson(Map<String, dynamic> data) {
return AndroidMotionEventBase(); return AndroidMotionEventBase();
} }
@override @override
String get description => r""" String get description => r"""
A Dart version of Android's [MotionEvent](https://developer.android.com/reference/android/view/MotionEvent). A Dart version of Android's [MotionEvent](https://developer.android.com/reference/android/view/MotionEvent).
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,26 +1,26 @@
import '../base.dart'; import '../base.dart';
class AndroidPointerCoordsBase extends BaseWidget { class AndroidPointerCoordsBase extends BaseWidget {
AndroidPointerCoordsBase(); AndroidPointerCoordsBase();
factory AndroidPointerCoordsBase.fromJson(Map<String, dynamic> data) { factory AndroidPointerCoordsBase.fromJson(Map<String, dynamic> data) {
return AndroidPointerCoordsBase(); return AndroidPointerCoordsBase();
} }
@override @override
String get description => r""" String get description => r"""
Position information for an Android pointer. Position information for an Android pointer.
A Dart version of Android's [MotionEvent.PointerCoords](https://developer.android.com/reference/android/view/MotionEvent.PointerCoords). A Dart version of Android's [MotionEvent.PointerCoords](https://developer.android.com/reference/android/view/MotionEvent.PointerCoords).
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,26 +1,26 @@
import '../base.dart'; import '../base.dart';
class AndroidPointerPropertiesBase extends BaseWidget { class AndroidPointerPropertiesBase extends BaseWidget {
AndroidPointerPropertiesBase(); AndroidPointerPropertiesBase();
factory AndroidPointerPropertiesBase.fromJson(Map<String, dynamic> data) { factory AndroidPointerPropertiesBase.fromJson(Map<String, dynamic> data) {
return AndroidPointerPropertiesBase(); return AndroidPointerPropertiesBase();
} }
@override @override
String get description => r""" String get description => r"""
Properties of an Android pointer. Properties of an Android pointer.
A Dart version of Android's [MotionEvent.PointerProperties](https://developer.android.com/reference/android/view/MotionEvent.PointerProperties). A Dart version of Android's [MotionEvent.PointerProperties](https://developer.android.com/reference/android/view/MotionEvent.PointerProperties).
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AndroidViewBase extends BaseWidget { class AndroidViewBase extends BaseWidget {
AndroidViewBase(); AndroidViewBase();
factory AndroidViewBase.fromJson(Map<String, dynamic> data) { factory AndroidViewBase.fromJson(Map<String, dynamic> data) {
return AndroidViewBase(); return AndroidViewBase();
} }
@override @override
String get description => r""" String get description => r"""
Embeds an Android view in the Widget hierarchy. Embeds an Android view in the Widget hierarchy.
Requires Android API level 20 or greater. Requires Android API level 20 or greater.
@@ -53,13 +53,13 @@ or it has a [GlobalKey] and it's moved within the tree, it will not be disposed.
{@endtemplate} {@endtemplate}
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AndroidViewSurfaceBase extends BaseWidget { class AndroidViewSurfaceBase extends BaseWidget {
AndroidViewSurfaceBase(); AndroidViewSurfaceBase();
factory AndroidViewSurfaceBase.fromJson(Map<String, dynamic> data) { factory AndroidViewSurfaceBase.fromJson(Map<String, dynamic> data) {
return AndroidViewSurfaceBase(); return AndroidViewSurfaceBase();
} }
@override @override
String get description => r""" String get description => r"""
Integrates an Android view with Flutter's compositor, touch, and semantics subsystems. Integrates an Android view with Flutter's compositor, touch, and semantics subsystems.
The compositor integration is done by adding a [PlatformViewLayer] to the layer tree. [PlatformViewLayer] The compositor integration is done by adding a [PlatformViewLayer] to the layer tree. [PlatformViewLayer]
@@ -26,13 +26,13 @@ See also:
* [UiKitView] which embeds an iOS platform view in the widget hierarchy. * [UiKitView] which embeds an iOS platform view in the widget hierarchy.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnimatedAlignBase extends BaseWidget { class AnimatedAlignBase extends BaseWidget {
AnimatedAlignBase(); AnimatedAlignBase();
factory AnimatedAlignBase.fromJson(Map<String, dynamic> data) { factory AnimatedAlignBase.fromJson(Map<String, dynamic> data) {
return AnimatedAlignBase(); return AnimatedAlignBase();
} }
@override @override
String get description => r""" String get description => r"""
Animated version of [Align] which automatically transitions the child's Animated version of [Align] which automatically transitions the child's
position over a given duration whenever the given [alignment] changes. position over a given duration whenever the given [alignment] changes.
@@ -68,13 +68,13 @@ See also:
position changes. position changes.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnimatedBuilderBase extends BaseWidget { class AnimatedBuilderBase extends BaseWidget {
AnimatedBuilderBase(); AnimatedBuilderBase();
factory AnimatedBuilderBase.fromJson(Map<String, dynamic> data) { factory AnimatedBuilderBase.fromJson(Map<String, dynamic> data) {
return AnimatedBuilderBase(); return AnimatedBuilderBase();
} }
@override @override
String get description => r""" String get description => r"""
A general-purpose widget for building animations. A general-purpose widget for building animations.
AnimatedBuilder is useful for more complex widgets that wish to include AnimatedBuilder is useful for more complex widgets that wish to include
@@ -90,13 +90,13 @@ See also:
without requiring manual management of an [AnimationController]. without requiring manual management of an [AnimationController].
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnimatedContainerBase extends BaseWidget { class AnimatedContainerBase extends BaseWidget {
AnimatedContainerBase(); AnimatedContainerBase();
factory AnimatedContainerBase.fromJson(Map<String, dynamic> data) { factory AnimatedContainerBase.fromJson(Map<String, dynamic> data) {
return AnimatedContainerBase(); return AnimatedContainerBase();
} }
@override @override
String get description => r""" String get description => r"""
Animated version of [Container] that gradually changes its values over a period of time. Animated version of [Container] that gradually changes its values over a period of time.
The [AnimatedContainer] will automatically animate between the old and The [AnimatedContainer] will automatically animate between the old and
@@ -71,13 +71,13 @@ See also:
* [AnimatedCrossFade], which fades between two children and interpolates their sizes. * [AnimatedCrossFade], which fades between two children and interpolates their sizes.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnimatedCrossFadeBase extends BaseWidget { class AnimatedCrossFadeBase extends BaseWidget {
AnimatedCrossFadeBase(); AnimatedCrossFadeBase();
factory AnimatedCrossFadeBase.fromJson(Map<String, dynamic> data) { factory AnimatedCrossFadeBase.fromJson(Map<String, dynamic> data) {
return AnimatedCrossFadeBase(); return AnimatedCrossFadeBase();
} }
@override @override
String get description => r""" String get description => r"""
A widget that cross-fades between two given children and animates itself A widget that cross-fades between two given children and animates itself
between their sizes. between their sizes.
@@ -57,13 +57,13 @@ See also:
automatically change size. automatically change size.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnimatedDefaultTextStyleBase extends BaseWidget { class AnimatedDefaultTextStyleBase extends BaseWidget {
AnimatedDefaultTextStyleBase(); AnimatedDefaultTextStyleBase();
factory AnimatedDefaultTextStyleBase.fromJson(Map<String, dynamic> data) { factory AnimatedDefaultTextStyleBase.fromJson(Map<String, dynamic> data) {
return AnimatedDefaultTextStyleBase(); return AnimatedDefaultTextStyleBase();
} }
@override @override
String get description => r""" String get description => r"""
Animated version of [DefaultTextStyle] which automatically transitions the Animated version of [DefaultTextStyle] which automatically transitions the
default text style (the text style to apply to descendant [Text] widgets default text style (the text style to apply to descendant [Text] widgets
without explicit style) over a given duration whenever the given style without explicit style) over a given duration whenever the given style
@@ -31,13 +31,13 @@ it also requires more development overhead as you have to manually manage
the lifecycle of the underlying [AnimationController]. the lifecycle of the underlying [AnimationController].
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnimatedIconBase extends BaseWidget { class AnimatedIconBase extends BaseWidget {
AnimatedIconBase(); AnimatedIconBase();
factory AnimatedIconBase.fromJson(Map<String, dynamic> data) { factory AnimatedIconBase.fromJson(Map<String, dynamic> data) {
return AnimatedIconBase(); return AnimatedIconBase();
} }
@override @override
String get description => r""" String get description => r"""
Shows an animated icon at a given animation [progress]. Shows an animated icon at a given animation [progress].
The available icons are specified in [AnimatedIcons]. The available icons are specified in [AnimatedIcons].
@@ -28,13 +28,13 @@ AnimatedIcon(
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnimatedListBase extends BaseWidget { class AnimatedListBase extends BaseWidget {
AnimatedListBase(); AnimatedListBase();
factory AnimatedListBase.fromJson(Map<String, dynamic> data) { factory AnimatedListBase.fromJson(Map<String, dynamic> data) {
return AnimatedListBase(); return AnimatedListBase();
} }
@override @override
String get description => r""" String get description => r"""
A scrolling container that animates items when they are inserted or removed. A scrolling container that animates items when they are inserted or removed.
This widget's [AnimatedListState] can be used to dynamically insert or This widget's [AnimatedListState] can be used to dynamically insert or
@@ -238,13 +238,13 @@ See also:
or removed from a list. or removed from a list.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnimatedListStateBase extends BaseWidget { class AnimatedListStateBase extends BaseWidget {
AnimatedListStateBase(); AnimatedListStateBase();
factory AnimatedListStateBase.fromJson(Map<String, dynamic> data) { factory AnimatedListStateBase.fromJson(Map<String, dynamic> data) {
return AnimatedListStateBase(); return AnimatedListStateBase();
} }
@override @override
String get description => r""" String get description => r"""
The state for a scrolling container that animates items when they are The state for a scrolling container that animates items when they are
inserted or removed. inserted or removed.
@@ -35,13 +35,13 @@ listKey.currentState.insert(123);
with the static [AnimatedList.of] method. with the static [AnimatedList.of] method.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnimatedModalBarrierBase extends BaseWidget { class AnimatedModalBarrierBase extends BaseWidget {
AnimatedModalBarrierBase(); AnimatedModalBarrierBase();
factory AnimatedModalBarrierBase.fromJson(Map<String, dynamic> data) { factory AnimatedModalBarrierBase.fromJson(Map<String, dynamic> data) {
return AnimatedModalBarrierBase(); return AnimatedModalBarrierBase();
} }
@override @override
String get description => r""" String get description => r"""
A widget that prevents the user from interacting with widgets behind itself, A widget that prevents the user from interacting with widgets behind itself,
and can be configured with an animated color value. and can be configured with an animated color value.
@@ -27,13 +27,13 @@ See also:
* [ModalRoute], which uses this widget. * [ModalRoute], which uses this widget.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnimatedOpacityBase extends BaseWidget { class AnimatedOpacityBase extends BaseWidget {
AnimatedOpacityBase(); AnimatedOpacityBase();
factory AnimatedOpacityBase.fromJson(Map<String, dynamic> data) { factory AnimatedOpacityBase.fromJson(Map<String, dynamic> data) {
return AnimatedOpacityBase(); return AnimatedOpacityBase();
} }
@override @override
String get description => r""" String get description => r"""
Animated version of [Opacity] which automatically transitions the child's Animated version of [Opacity] which automatically transitions the child's
opacity over a given duration whenever the given opacity changes. opacity over a given duration whenever the given opacity changes.
@@ -67,13 +67,13 @@ See also:
opacity over a given duration whenever the given opacity changes. opacity over a given duration whenever the given opacity changes.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnimatedPaddingBase extends BaseWidget { class AnimatedPaddingBase extends BaseWidget {
AnimatedPaddingBase(); AnimatedPaddingBase();
factory AnimatedPaddingBase.fromJson(Map<String, dynamic> data) { factory AnimatedPaddingBase.fromJson(Map<String, dynamic> data) {
return AnimatedPaddingBase(); return AnimatedPaddingBase();
} }
@override @override
String get description => r""" String get description => r"""
Animated version of [Padding] which automatically transitions the Animated version of [Padding] which automatically transitions the
indentation over a given duration whenever the given inset changes. indentation over a given duration whenever the given inset changes.
@@ -26,13 +26,13 @@ See also:
[AnimatedAlign.alignment] changes. [AnimatedAlign.alignment] changes.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnimatedPhysicalModelBase extends BaseWidget { class AnimatedPhysicalModelBase extends BaseWidget {
AnimatedPhysicalModelBase(); AnimatedPhysicalModelBase();
factory AnimatedPhysicalModelBase.fromJson(Map<String, dynamic> data) { factory AnimatedPhysicalModelBase.fromJson(Map<String, dynamic> data) {
return AnimatedPhysicalModelBase(); return AnimatedPhysicalModelBase();
} }
@override @override
String get description => r""" String get description => r"""
Animated version of [PhysicalModel]. Animated version of [PhysicalModel].
The [borderRadius] and [elevation] are animated. The [borderRadius] and [elevation] are animated.
@@ -25,13 +25,13 @@ of [Curves.fastOutSlowIn].
{@animation 250 266 https://flutter.github.io/assets-for-api-docs/assets/widgets/animated_physical_model.mp4} {@animation 250 266 https://flutter.github.io/assets-for-api-docs/assets/widgets/animated_physical_model.mp4}
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnimatedPositionedBase extends BaseWidget { class AnimatedPositionedBase extends BaseWidget {
AnimatedPositionedBase(); AnimatedPositionedBase();
factory AnimatedPositionedBase.fromJson(Map<String, dynamic> data) { factory AnimatedPositionedBase.fromJson(Map<String, dynamic> data) {
return AnimatedPositionedBase(); return AnimatedPositionedBase();
} }
@override @override
String get description => r""" String get description => r"""
Animated version of [Positioned] which automatically transitions the child's Animated version of [Positioned] which automatically transitions the child's
position over a given duration whenever the given position changes. position over a given duration whenever the given position changes.
@@ -42,13 +42,13 @@ See also:
[PositionedDirectional]). [PositionedDirectional]).
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,15 @@
import '../base.dart'; import '../base.dart';
class AnimatedPositionedDirectionalBase extends BaseWidget { class AnimatedPositionedDirectionalBase extends BaseWidget {
AnimatedPositionedDirectionalBase(); AnimatedPositionedDirectionalBase();
factory AnimatedPositionedDirectionalBase.fromJson(Map<String, dynamic> data) { factory AnimatedPositionedDirectionalBase.fromJson(
return AnimatedPositionedDirectionalBase(); Map<String, dynamic> data) {
} return AnimatedPositionedDirectionalBase();
}
@override @override
String get description => r""" String get description => r"""
Animated version of [PositionedDirectional] which automatically transitions Animated version of [PositionedDirectional] which automatically transitions
the child's position over a given duration whenever the given position the child's position over a given duration whenever the given position
changes. changes.
@@ -35,13 +36,13 @@ See also:
same as this widget, but for animating [Positioned]). same as this widget, but for animating [Positioned]).
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnimatedSizeBase extends BaseWidget { class AnimatedSizeBase extends BaseWidget {
AnimatedSizeBase(); AnimatedSizeBase();
factory AnimatedSizeBase.fromJson(Map<String, dynamic> data) { factory AnimatedSizeBase.fromJson(Map<String, dynamic> data) {
return AnimatedSizeBase(); return AnimatedSizeBase();
} }
@override @override
String get description => r""" String get description => r"""
Animated widget that automatically transitions its size over a given Animated widget that automatically transitions its size over a given
duration whenever the given child's size changes. duration whenever the given child's size changes.
@@ -52,13 +52,13 @@ See also:
* [SizeTransition], which changes its size based on an [Animation]. * [SizeTransition], which changes its size based on an [Animation].
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnimatedSwitcherBase extends BaseWidget { class AnimatedSwitcherBase extends BaseWidget {
AnimatedSwitcherBase(); AnimatedSwitcherBase();
factory AnimatedSwitcherBase.fromJson(Map<String, dynamic> data) { factory AnimatedSwitcherBase.fromJson(Map<String, dynamic> data) {
return AnimatedSwitcherBase(); return AnimatedSwitcherBase();
} }
@override @override
String get description => r""" String get description => r"""
A widget that by default does a cross-fade between a new widget and the A widget that by default does a cross-fade between a new widget and the
widget previously set on the [AnimatedSwitcher] as a child. widget previously set on the [AnimatedSwitcher] as a child.
@@ -88,13 +88,13 @@ See also:
* [FadeTransition], which [AnimatedSwitcher] uses to perform the transition. * [FadeTransition], which [AnimatedSwitcher] uses to perform the transition.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnimatedThemeBase extends BaseWidget { class AnimatedThemeBase extends BaseWidget {
AnimatedThemeBase(); AnimatedThemeBase();
factory AnimatedThemeBase.fromJson(Map<String, dynamic> data) { factory AnimatedThemeBase.fromJson(Map<String, dynamic> data) {
return AnimatedThemeBase(); return AnimatedThemeBase();
} }
@override @override
String get description => r""" String get description => r"""
Animated version of [Theme] which automatically transitions the colors, Animated version of [Theme] which automatically transitions the colors,
etc, over a given duration whenever the given theme changes. etc, over a given duration whenever the given theme changes.
@@ -25,13 +25,13 @@ See also:
the [MaterialApp.theme] argument. the [MaterialApp.theme] argument.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnimationControllerBase extends BaseWidget { class AnimationControllerBase extends BaseWidget {
AnimationControllerBase(); AnimationControllerBase();
factory AnimationControllerBase.fromJson(Map<String, dynamic> data) { factory AnimationControllerBase.fromJson(Map<String, dynamic> data) {
return AnimationControllerBase(); return AnimationControllerBase();
} }
@override @override
String get description => r""" String get description => r"""
A controller for an animation. A controller for an animation.
This class lets you perform tasks such as: This class lets you perform tasks such as:
@@ -152,13 +152,13 @@ See also:
range of values of other types. range of values of other types.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,27 +1,27 @@
import '../base.dart'; import '../base.dart';
class AnimationMaxBase extends BaseWidget { class AnimationMaxBase extends BaseWidget {
AnimationMaxBase(); AnimationMaxBase();
factory AnimationMaxBase.fromJson(Map<String, dynamic> data) { factory AnimationMaxBase.fromJson(Map<String, dynamic> data) {
return AnimationMaxBase(); return AnimationMaxBase();
} }
@override @override
String get description => r""" String get description => r"""
An animation that tracks the maximum of two other animations. An animation that tracks the maximum of two other animations.
The [value] of this animation is the maximum of the values of The [value] of this animation is the maximum of the values of
[first] and [next]. [first] and [next].
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnimationMeanBase extends BaseWidget { class AnimationMeanBase extends BaseWidget {
AnimationMeanBase(); AnimationMeanBase();
factory AnimationMeanBase.fromJson(Map<String, dynamic> data) { factory AnimationMeanBase.fromJson(Map<String, dynamic> data) {
return AnimationMeanBase(); return AnimationMeanBase();
} }
@override @override
String get description => r""" String get description => r"""
An animation of [double]s that tracks the mean of two other animations. An animation of [double]s that tracks the mean of two other animations.
The [status] of this animation is the status of the `right` animation if it is The [status] of this animation is the status of the `right` animation if it is
@@ -18,13 +18,13 @@ The [value] of this animation is the [double] that represents the mean value
of the values of the `left` and `right` animations. of the values of the `left` and `right` animations.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,27 +1,27 @@
import '../base.dart'; import '../base.dart';
class AnimationMinBase extends BaseWidget { class AnimationMinBase extends BaseWidget {
AnimationMinBase(); AnimationMinBase();
factory AnimationMinBase.fromJson(Map<String, dynamic> data) { factory AnimationMinBase.fromJson(Map<String, dynamic> data) {
return AnimationMinBase(); return AnimationMinBase();
} }
@override @override
String get description => r""" String get description => r"""
An animation that tracks the minimum of two other animations. An animation that tracks the minimum of two other animations.
The [value] of this animation is the maximum of the values of The [value] of this animation is the maximum of the values of
[first] and [next]. [first] and [next].
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnnotatedRegionBase extends BaseWidget { class AnnotatedRegionBase extends BaseWidget {
AnnotatedRegionBase(); AnnotatedRegionBase();
factory AnnotatedRegionBase.fromJson(Map<String, dynamic> data) { factory AnnotatedRegionBase.fromJson(Map<String, dynamic> data) {
return AnnotatedRegionBase(); return AnnotatedRegionBase();
} }
@override @override
String get description => r""" String get description => r"""
Annotates a region of the layer tree with a value. Annotates a region of the layer tree with a value.
See also: See also:
@@ -17,13 +17,13 @@ See also:
* [AnnotatedRegionLayer], the layer pushed into the layer tree. * [AnnotatedRegionLayer], the layer pushed into the layer tree.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnnotatedRegionLayerBase extends BaseWidget { class AnnotatedRegionLayerBase extends BaseWidget {
AnnotatedRegionLayerBase(); AnnotatedRegionLayerBase();
factory AnnotatedRegionLayerBase.fromJson(Map<String, dynamic> data) { factory AnnotatedRegionLayerBase.fromJson(Map<String, dynamic> data) {
return AnnotatedRegionLayerBase(); return AnnotatedRegionLayerBase();
} }
@override @override
String get description => r""" String get description => r"""
A composited layer which annotates its children with a value. Pushing this A composited layer which annotates its children with a value. Pushing this
layer to the tree is the common way of adding an annotation. layer to the tree is the common way of adding an annotation.
@@ -32,13 +32,13 @@ This layer is opaque to a type of annotation if any child is also opaque, or
if [opaque] is true and the layer's annotation is added. if [opaque] is true and the layer's annotation is added.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnnotationEntryBase extends BaseWidget { class AnnotationEntryBase extends BaseWidget {
AnnotationEntryBase(); AnnotationEntryBase();
factory AnnotationEntryBase.fromJson(Map<String, dynamic> data) { factory AnnotationEntryBase.fromJson(Map<String, dynamic> data) {
return AnnotationEntryBase(); return AnnotationEntryBase();
} }
@override @override
String get description => r""" String get description => r"""
Information collected for an annotation that is found in the layer tree. Information collected for an annotation that is found in the layer tree.
See also: See also:
@@ -16,13 +16,13 @@ See also:
* [Layer.findAnnotations], which create and use objects of this class. * [Layer.findAnnotations], which create and use objects of this class.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnnotationResultBase extends BaseWidget { class AnnotationResultBase extends BaseWidget {
AnnotationResultBase(); AnnotationResultBase();
factory AnnotationResultBase.fromJson(Map<String, dynamic> data) { factory AnnotationResultBase.fromJson(Map<String, dynamic> data) {
return AnnotationResultBase(); return AnnotationResultBase();
} }
@override @override
String get description => r""" String get description => r"""
Information collected about a list of annotations that are found in the Information collected about a list of annotations that are found in the
layer tree. layer tree.
@@ -19,13 +19,13 @@ See also:
use an object of this class. use an object of this class.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AnnounceSemanticsEventBase extends BaseWidget { class AnnounceSemanticsEventBase extends BaseWidget {
AnnounceSemanticsEventBase(); AnnounceSemanticsEventBase();
factory AnnounceSemanticsEventBase.fromJson(Map<String, dynamic> data) { factory AnnounceSemanticsEventBase.fromJson(Map<String, dynamic> data) {
return AnnounceSemanticsEventBase(); return AnnounceSemanticsEventBase();
} }
@override @override
String get description => r""" String get description => r"""
An event for a semantic announcement. An event for a semantic announcement.
This should be used for announcement that are not seamlessly announced by This should be used for announcement that are not seamlessly announced by
@@ -21,13 +21,13 @@ When possible, prefer using mechanisms like [Semantics] to implicitly
trigger announcements over using this event. trigger announcements over using this event.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AppBarBase extends BaseWidget { class AppBarBase extends BaseWidget {
AppBarBase(); AppBarBase();
factory AppBarBase.fromJson(Map<String, dynamic> data) { factory AppBarBase.fromJson(Map<String, dynamic> data) {
return AppBarBase(); return AppBarBase();
} }
@override @override
String get description => r""" String get description => r"""
A material design app bar. A material design app bar.
An app bar consists of a toolbar and potentially other widgets, such as a An app bar consists of a toolbar and potentially other widgets, such as a
@@ -129,13 +129,13 @@ See also:
[custom bottom widgets](https://flutter.dev/docs/catalog/samples/app-bar-bottom). [custom bottom widgets](https://flutter.dev/docs/catalog/samples/app-bar-bottom).
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AppBarThemeBase extends BaseWidget { class AppBarThemeBase extends BaseWidget {
AppBarThemeBase(); AppBarThemeBase();
factory AppBarThemeBase.fromJson(Map<String, dynamic> data) { factory AppBarThemeBase.fromJson(Map<String, dynamic> data) {
return AppBarThemeBase(); return AppBarThemeBase();
} }
@override @override
String get description => r""" String get description => r"""
Defines default property values for descendant [AppBar] widgets. Defines default property values for descendant [AppBar] widgets.
Descendant widgets obtain the current [AppBarTheme] object using Descendant widgets obtain the current [AppBarTheme] object using
@@ -28,13 +28,13 @@ See also:
application. application.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,15 @@
import '../base.dart'; import '../base.dart';
class ApplicationSwitcherDescriptionBase extends BaseWidget { class ApplicationSwitcherDescriptionBase extends BaseWidget {
ApplicationSwitcherDescriptionBase(); ApplicationSwitcherDescriptionBase();
factory ApplicationSwitcherDescriptionBase.fromJson(Map<String, dynamic> data) { factory ApplicationSwitcherDescriptionBase.fromJson(
return ApplicationSwitcherDescriptionBase(); Map<String, dynamic> data) {
} return ApplicationSwitcherDescriptionBase();
}
@override @override
String get description => r""" String get description => r"""
Specifies a description of the application that is pertinent to the Specifies a description of the application that is pertinent to the
embedder's application switcher (also known as "recent tasks") user embedder's application switcher (also known as "recent tasks") user
interface. interface.
@@ -16,13 +17,13 @@ interface.
Used by [SystemChrome.setApplicationSwitcherDescription]. Used by [SystemChrome.setApplicationSwitcherDescription].
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AspectRatioBase extends BaseWidget { class AspectRatioBase extends BaseWidget {
AspectRatioBase(); AspectRatioBase();
factory AspectRatioBase.fromJson(Map<String, dynamic> data) { factory AspectRatioBase.fromJson(Map<String, dynamic> data) {
return AspectRatioBase(); return AspectRatioBase();
} }
@override @override
String get description => r""" String get description => r"""
A widget that attempts to size the child to a specific aspect ratio. A widget that attempts to size the child to a specific aspect ratio.
The widget first tries the largest width permitted by the layout The widget first tries the largest width permitted by the layout
@@ -49,13 +49,13 @@ See also:
* The [catalog of layout widgets](https://flutter.dev/widgets/layout/). * The [catalog of layout widgets](https://flutter.dev/widgets/layout/).
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,26 +1,26 @@
import '../base.dart'; import '../base.dart';
class AssetBundleImageKeyBase extends BaseWidget { class AssetBundleImageKeyBase extends BaseWidget {
AssetBundleImageKeyBase(); AssetBundleImageKeyBase();
factory AssetBundleImageKeyBase.fromJson(Map<String, dynamic> data) { factory AssetBundleImageKeyBase.fromJson(Map<String, dynamic> data) {
return AssetBundleImageKeyBase(); return AssetBundleImageKeyBase();
} }
@override @override
String get description => r""" String get description => r"""
Key for the image obtained by an [AssetImage] or [ExactAssetImage]. Key for the image obtained by an [AssetImage] or [ExactAssetImage].
This is used to identify the precise resource in the [imageCache]. This is used to identify the precise resource in the [imageCache].
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AssetImageBase extends BaseWidget { class AssetImageBase extends BaseWidget {
AssetImageBase(); AssetImageBase();
factory AssetImageBase.fromJson(Map<String, dynamic> data) { factory AssetImageBase.fromJson(Map<String, dynamic> data) {
return AssetImageBase(); return AssetImageBase();
} }
@override @override
String get description => r""" String get description => r"""
Fetches an image from an [AssetBundle], having determined the exact image to Fetches an image from an [AssetBundle], having determined the exact image to
use based on the context. use based on the context.
@@ -117,13 +117,13 @@ See also:
when used without a scale. when used without a scale.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AsyncSnapshotBase extends BaseWidget { class AsyncSnapshotBase extends BaseWidget {
AsyncSnapshotBase(); AsyncSnapshotBase();
factory AsyncSnapshotBase.fromJson(Map<String, dynamic> data) { factory AsyncSnapshotBase.fromJson(Map<String, dynamic> data) {
return AsyncSnapshotBase(); return AsyncSnapshotBase();
} }
@override @override
String get description => r""" String get description => r"""
Immutable representation of the most recent interaction with an asynchronous Immutable representation of the most recent interaction with an asynchronous
computation. computation.
@@ -20,13 +20,13 @@ See also:
with a [Future]. with a [Future].
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,26 +1,26 @@
import '../base.dart'; import '../base.dart';
class AutofillConfigurationBase extends BaseWidget { class AutofillConfigurationBase extends BaseWidget {
AutofillConfigurationBase(); AutofillConfigurationBase();
factory AutofillConfigurationBase.fromJson(Map<String, dynamic> data) { factory AutofillConfigurationBase.fromJson(Map<String, dynamic> data) {
return AutofillConfigurationBase(); return AutofillConfigurationBase();
} }
@override @override
String get description => r""" String get description => r"""
A collection of autofill related information that represents an [AutofillClient]. A collection of autofill related information that represents an [AutofillClient].
Typically used in [TextInputConfiguration.autofillConfiguration]. Typically used in [TextInputConfiguration.autofillConfiguration].
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AutofillGroupBase extends BaseWidget { class AutofillGroupBase extends BaseWidget {
AutofillGroupBase(); AutofillGroupBase();
factory AutofillGroupBase.fromJson(Map<String, dynamic> data) { factory AutofillGroupBase.fromJson(Map<String, dynamic> data) {
return AutofillGroupBase(); return AutofillGroupBase();
} }
@override @override
String get description => r""" String get description => r"""
An [AutofillScope] widget that groups [AutofillClient]s together. An [AutofillScope] widget that groups [AutofillClient]s together.
[AutofillClient]s that share the same closest [AutofillGroup] ancestor must [AutofillClient]s that share the same closest [AutofillGroup] ancestor must
@@ -133,13 +133,13 @@ See also:
clean up actions to be run when a topmost [AutofillGroup] is disposed. clean up actions to be run when a topmost [AutofillGroup] is disposed.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AutofillGroupStateBase extends BaseWidget { class AutofillGroupStateBase extends BaseWidget {
AutofillGroupStateBase(); AutofillGroupStateBase();
factory AutofillGroupStateBase.fromJson(Map<String, dynamic> data) { factory AutofillGroupStateBase.fromJson(Map<String, dynamic> data) {
return AutofillGroupStateBase(); return AutofillGroupStateBase();
} }
@override @override
String get description => r""" String get description => r"""
State associated with an [AutofillGroup] widget. State associated with an [AutofillGroup] widget.
{@template flutter.widgets.autofill.AutofillGroupState} {@template flutter.widgets.autofill.AutofillGroupState}
@@ -27,13 +27,13 @@ with the platform's text input system.
Typically obtained using [AutofillGroup.of]. Typically obtained using [AutofillGroup.of].
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AutofillHintsBase extends BaseWidget { class AutofillHintsBase extends BaseWidget {
AutofillHintsBase(); AutofillHintsBase();
factory AutofillHintsBase.fromJson(Map<String, dynamic> data) { factory AutofillHintsBase.fromJson(Map<String, dynamic> data) {
return AutofillHintsBase(); return AutofillHintsBase();
} }
@override @override
String get description => r""" String get description => r"""
A collection of commonly used autofill hint strings on different platforms. A collection of commonly used autofill hint strings on different platforms.
Each hint is pre-defined on at least one supported platform. See their Each hint is pre-defined on at least one supported platform. See their
@@ -16,13 +16,13 @@ documentation for their availability on each platform, and the platform
values each autofill hint corresponds to. values each autofill hint corresponds to.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AutomaticKeepAliveBase extends BaseWidget { class AutomaticKeepAliveBase extends BaseWidget {
AutomaticKeepAliveBase(); AutomaticKeepAliveBase();
factory AutomaticKeepAliveBase.fromJson(Map<String, dynamic> data) { factory AutomaticKeepAliveBase.fromJson(Map<String, dynamic> data) {
return AutomaticKeepAliveBase(); return AutomaticKeepAliveBase();
} }
@override @override
String get description => r""" String get description => r"""
Allows subtrees to request to be kept alive in lazy lists. Allows subtrees to request to be kept alive in lazy lists.
This widget is like [KeepAlive] but instead of being explicitly configured, This widget is like [KeepAlive] but instead of being explicitly configured,
@@ -22,13 +22,13 @@ sent a [KeepAliveNotification] and not yet triggered its
To send these notifications, consider using [AutomaticKeepAliveClientMixin]. To send these notifications, consider using [AutomaticKeepAliveClientMixin].
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class AutomaticNotchedShapeBase extends BaseWidget { class AutomaticNotchedShapeBase extends BaseWidget {
AutomaticNotchedShapeBase(); AutomaticNotchedShapeBase();
factory AutomaticNotchedShapeBase.fromJson(Map<String, dynamic> data) { factory AutomaticNotchedShapeBase.fromJson(Map<String, dynamic> data) {
return AutomaticNotchedShapeBase(); return AutomaticNotchedShapeBase();
} }
@override @override
String get description => r""" String get description => r"""
A [NotchedShape] created from [ShapeBorder]s. A [NotchedShape] created from [ShapeBorder]s.
Two shapes can be provided. The [host] is the shape of the widget that Two shapes can be provided. The [host] is the shape of the widget that
@@ -17,13 +17,13 @@ subtracted from the [host] to create the notch (typically to make room
for a [FloatingActionButton]). for a [FloatingActionButton]).
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class BackButtonBase extends BaseWidget { class BackButtonBase extends BaseWidget {
BackButtonBase(); BackButtonBase();
factory BackButtonBase.fromJson(Map<String, dynamic> data) { factory BackButtonBase.fromJson(Map<String, dynamic> data) {
return BackButtonBase(); return BackButtonBase();
} }
@override @override
String get description => r""" String get description => r"""
A material design back button. A material design back button.
A [BackButton] is an [IconButton] with a "back" icon appropriate for the A [BackButton] is an [IconButton] with a "back" icon appropriate for the
@@ -37,13 +37,13 @@ See also:
node pages in the navigation tree. node pages in the navigation tree.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class BackButtonIconBase extends BaseWidget { class BackButtonIconBase extends BaseWidget {
BackButtonIconBase(); BackButtonIconBase();
factory BackButtonIconBase.fromJson(Map<String, dynamic> data) { factory BackButtonIconBase.fromJson(Map<String, dynamic> data) {
return BackButtonIconBase(); return BackButtonIconBase();
} }
@override @override
String get description => r""" String get description => r"""
A "back" icon that's appropriate for the current [TargetPlatform]. A "back" icon that's appropriate for the current [TargetPlatform].
The current platform is determined by querying for the ambient [Theme]. The current platform is determined by querying for the ambient [Theme].
@@ -23,13 +23,13 @@ See also:
* [ThemeData.platform], which specifies the current platform. * [ThemeData.platform], which specifies the current platform.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class BackdropFilterBase extends BaseWidget { class BackdropFilterBase extends BaseWidget {
BackdropFilterBase(); BackdropFilterBase();
factory BackdropFilterBase.fromJson(Map<String, dynamic> data) { factory BackdropFilterBase.fromJson(Map<String, dynamic> data) {
return BackdropFilterBase(); return BackdropFilterBase();
} }
@override @override
String get description => r""" String get description => r"""
A widget that applies a filter to the existing painted content and then A widget that applies a filter to the existing painted content and then
paints [child]. paints [child].
@@ -64,13 +64,13 @@ See also:
* [Opacity], which changes the opacity of the widget itself. * [Opacity], which changes the opacity of the widget itself.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,24 +1,24 @@
import '../base.dart'; import '../base.dart';
class BackdropFilterLayerBase extends BaseWidget { class BackdropFilterLayerBase extends BaseWidget {
BackdropFilterLayerBase(); BackdropFilterLayerBase();
factory BackdropFilterLayerBase.fromJson(Map<String, dynamic> data) { factory BackdropFilterLayerBase.fromJson(Map<String, dynamic> data) {
return BackdropFilterLayerBase(); return BackdropFilterLayerBase();
} }
@override @override
String get description => r""" String get description => r"""
A composited layer that applies a filter to the existing contents of the scene. A composited layer that applies a filter to the existing contents of the scene.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class BallisticScrollActivityBase extends BaseWidget { class BallisticScrollActivityBase extends BaseWidget {
BallisticScrollActivityBase(); BallisticScrollActivityBase();
factory BallisticScrollActivityBase.fromJson(Map<String, dynamic> data) { factory BallisticScrollActivityBase.fromJson(Map<String, dynamic> data) {
return BallisticScrollActivityBase(); return BallisticScrollActivityBase();
} }
@override @override
String get description => r""" String get description => r"""
An activity that animates a scroll view based on a physics [Simulation]. An activity that animates a scroll view based on a physics [Simulation].
A [BallisticScrollActivity] is typically used when the user lifts their A [BallisticScrollActivity] is typically used when the user lifts their
@@ -24,13 +24,13 @@ See also:
animation parameters. animation parameters.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class BannerBase extends BaseWidget { class BannerBase extends BaseWidget {
BannerBase(); BannerBase();
factory BannerBase.fromJson(Map<String, dynamic> data) { factory BannerBase.fromJson(Map<String, dynamic> data) {
return BannerBase(); return BannerBase();
} }
@override @override
String get description => r""" String get description => r"""
Displays a diagonal message above the corner of another widget. Displays a diagonal message above the corner of another widget.
Useful for showing the execution mode of an app (e.g., that asserts are Useful for showing the execution mode of an app (e.g., that asserts are
@@ -20,13 +20,13 @@ See also:
debug mode, to show a banner that says "DEBUG". debug mode, to show a banner that says "DEBUG".
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,24 +1,24 @@
import '../base.dart'; import '../base.dart';
class BannerPainterBase extends BaseWidget { class BannerPainterBase extends BaseWidget {
BannerPainterBase(); BannerPainterBase();
factory BannerPainterBase.fromJson(Map<String, dynamic> data) { factory BannerPainterBase.fromJson(Map<String, dynamic> data) {
return BannerPainterBase(); return BannerPainterBase();
} }
@override @override
String get description => r""" String get description => r"""
Paints a [Banner]. Paints a [Banner].
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class BaselineBase extends BaseWidget { class BaselineBase extends BaseWidget {
BaselineBase(); BaselineBase();
factory BaselineBase.fromJson(Map<String, dynamic> data) { factory BaselineBase.fromJson(Map<String, dynamic> data) {
return BaselineBase(); return BaselineBase();
} }
@override @override
String get description => r""" String get description => r"""
A widget that positions its child according to the child's baseline. A widget that positions its child according to the child's baseline.
This widget shifts the child down such that the child's baseline (or the This widget shifts the child down such that the child's baseline (or the
@@ -26,13 +26,13 @@ See also:
* The [catalog of layout widgets](https://flutter.dev/widgets/layout/). * The [catalog of layout widgets](https://flutter.dev/widgets/layout/).
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class BasicMessageChannelBase extends BaseWidget { class BasicMessageChannelBase extends BaseWidget {
BasicMessageChannelBase(); BasicMessageChannelBase();
factory BasicMessageChannelBase.fromJson(Map<String, dynamic> data) { factory BasicMessageChannelBase.fromJson(Map<String, dynamic> data) {
return BasicMessageChannelBase(); return BasicMessageChannelBase();
} }
@override @override
String get description => r""" String get description => r"""
A named channel for communicating with platform plugins using asynchronous A named channel for communicating with platform plugins using asynchronous
message passing. message passing.
@@ -28,13 +28,13 @@ channels will interfere with each other's communication.
See: <https://flutter.dev/platform-channels/> See: <https://flutter.dev/platform-channels/>
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class BeveledRectangleBorderBase extends BaseWidget { class BeveledRectangleBorderBase extends BaseWidget {
BeveledRectangleBorderBase(); BeveledRectangleBorderBase();
factory BeveledRectangleBorderBase.fromJson(Map<String, dynamic> data) { factory BeveledRectangleBorderBase.fromJson(Map<String, dynamic> data) {
return BeveledRectangleBorderBase(); return BeveledRectangleBorderBase();
} }
@override @override
String get description => r""" String get description => r"""
A rectangular border with flattened or "beveled" corners. A rectangular border with flattened or "beveled" corners.
The line segments that connect the rectangle's four sides will The line segments that connect the rectangle's four sides will
@@ -18,13 +18,13 @@ exceed the sides' half widths/heights the resulting shape is
diamond made by connecting the centers of the sides. diamond made by connecting the centers of the sides.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class BinaryCodecBase extends BaseWidget { class BinaryCodecBase extends BaseWidget {
BinaryCodecBase(); BinaryCodecBase();
factory BinaryCodecBase.fromJson(Map<String, dynamic> data) { factory BinaryCodecBase.fromJson(Map<String, dynamic> data) {
return BinaryCodecBase(); return BinaryCodecBase();
} }
@override @override
String get description => r""" String get description => r"""
[MessageCodec] with unencoded binary messages represented using [ByteData]. [MessageCodec] with unencoded binary messages represented using [ByteData].
On Android, messages will be represented using `java.nio.ByteBuffer`. On Android, messages will be represented using `java.nio.ByteBuffer`.
@@ -19,13 +19,13 @@ as opposed to indirect. The `wrap()` API provides indirect buffers by default
and you will get empty `ByteData` objects in Dart. and you will get empty `ByteData` objects in Dart.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class BinaryMessagesBase extends BaseWidget { class BinaryMessagesBase extends BaseWidget {
BinaryMessagesBase(); BinaryMessagesBase();
factory BinaryMessagesBase.fromJson(Map<String, dynamic> data) { factory BinaryMessagesBase.fromJson(Map<String, dynamic> data) {
return BinaryMessagesBase(); return BinaryMessagesBase();
} }
@override @override
String get description => r""" String get description => r"""
Sends binary messages to and receives binary messages from platform plugins. Sends binary messages to and receives binary messages from platform plugins.
This class has been deprecated in favor of [defaultBinaryMessenger]. New This class has been deprecated in favor of [defaultBinaryMessenger]. New
@@ -26,13 +26,13 @@ See also:
* <https://flutter.dev/platform-channels/> * <https://flutter.dev/platform-channels/>
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,24 +1,24 @@
import '../base.dart'; import '../base.dart';
class BitFieldBase extends BaseWidget { class BitFieldBase extends BaseWidget {
BitFieldBase(); BitFieldBase();
factory BitFieldBase.fromJson(Map<String, dynamic> data) { factory BitFieldBase.fromJson(Map<String, dynamic> data) {
return BitFieldBase(); return BitFieldBase();
} }
@override @override
String get description => r""" String get description => r"""
The dart:io implementation of [bitfield.Bitfield]. The dart:io implementation of [bitfield.Bitfield].
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,24 +1,25 @@
import '../base.dart'; import '../base.dart';
class BlacklistingTextInputFormatterBase extends BaseWidget { class BlacklistingTextInputFormatterBase extends BaseWidget {
BlacklistingTextInputFormatterBase(); BlacklistingTextInputFormatterBase();
factory BlacklistingTextInputFormatterBase.fromJson(Map<String, dynamic> data) { factory BlacklistingTextInputFormatterBase.fromJson(
return BlacklistingTextInputFormatterBase(); Map<String, dynamic> data) {
} return BlacklistingTextInputFormatterBase();
}
@override @override
String get description => r""" String get description => r"""
Old name for [FilteringTextInputFormatter.deny]. Old name for [FilteringTextInputFormatter.deny].
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class BlockSemanticsBase extends BaseWidget { class BlockSemanticsBase extends BaseWidget {
BlockSemanticsBase(); BlockSemanticsBase();
factory BlockSemanticsBase.fromJson(Map<String, dynamic> data) { factory BlockSemanticsBase.fromJson(Map<String, dynamic> data) {
return BlockSemanticsBase(); return BlockSemanticsBase();
} }
@override @override
String get description => r""" String get description => r"""
A widget that drops the semantics of all widget that were painted before it A widget that drops the semantics of all widget that were painted before it
in the same semantic container. in the same semantic container.
@@ -23,13 +23,13 @@ See also:
* [ExcludeSemantics] which drops all semantics of its descendants. * [ExcludeSemantics] which drops all semantics of its descendants.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }
@@ -1,14 +1,14 @@
import '../base.dart'; import '../base.dart';
class BorderBase extends BaseWidget { class BorderBase extends BaseWidget {
BorderBase(); BorderBase();
factory BorderBase.fromJson(Map<String, dynamic> data) { factory BorderBase.fromJson(Map<String, dynamic> data) {
return BorderBase(); return BorderBase();
} }
@override @override
String get description => r""" String get description => r"""
A border of a box, comprised of four sides: top, right, bottom, left. A border of a box, comprised of four sides: top, right, bottom, left.
The sides are represented by [BorderSide] objects. The sides are represented by [BorderSide] objects.
@@ -72,13 +72,13 @@ See also:
to use for borders in a material app, as shown in the "divider" sample above. to use for borders in a material app, as shown in the "divider" sample above.
"""; """;
@override @override
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
return {}; return {};
} }
@override @override
Widget render(BuildContext context) { Widget render(BuildContext context) {
return Container(); return Container();
} }
} }

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