flutter/dev/a11y_assessments/lib/use_cases/use_cases.dart
Michael Goderbauer 5491c8c146
Auto-format Framework (#160545)
This auto-formats all *.dart files in the repository outside of the
`engine` subdirectory and enforces that these files stay formatted with
a presubmit check.

**Reviewers:** Please carefully review all the commits except for the
one titled "formatted". The "formatted" commit was auto-generated by
running `dev/tools/format.sh -a -f`. The other commits were hand-crafted
to prepare the repo for the formatting change. I recommend reviewing the
commits one-by-one via the "Commits" tab and avoiding Github's "Files
changed" tab as it will likely slow down your browser because of the
size of this PR.

---------

Co-authored-by: Kate Lovett <katelovett@google.com>
Co-authored-by: LongCatIsLooong <31859944+LongCatIsLooong@users.noreply.github.com>
2024-12-19 20:06:21 +00:00

66 lines
1.6 KiB
Dart

// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/widgets.dart';
import '../common/dynamic_title.dart';
import 'action_chip.dart';
import 'app_bar.dart';
import 'auto_complete.dart';
import 'badge.dart';
import 'card.dart';
import 'check_box_list_tile.dart';
import 'date_picker.dart';
import 'dialog.dart';
import 'drawer.dart';
import 'expansion_tile.dart';
import 'material_banner.dart';
import 'navigation_bar.dart';
import 'navigation_drawer.dart';
import 'navigation_rail.dart';
import 'radio_list_tile.dart';
import 'slider.dart';
import 'snack_bar.dart';
import 'switch_list_tile.dart';
import 'tab_bar_view.dart';
import 'text_button.dart';
import 'text_field.dart';
import 'text_field_password.dart';
abstract class UseCase {
String get name;
String get route;
Widget buildWithTitle(BuildContext context) {
return DynamicTitle(title: name, child: build(context));
}
Widget build(BuildContext context);
}
final List<UseCase> useCases = <UseCase>[
CheckBoxListTile(),
DialogUseCase(),
SliderUseCase(),
TextFieldUseCase(),
TextFieldPasswordUseCase(),
DatePickerUseCase(),
AutoCompleteUseCase(),
BadgeUseCase(),
MaterialBannerUseCase(),
NavigationBarUseCase(),
TextButtonUseCase(),
RadioListTileUseCase(),
ActionChipUseCase(),
SnackBarUseCase(),
SwitchListTileUseCase(),
ExpansionTileUseCase(),
CardUseCase(),
DrawerUseCase(),
NavigationDrawerUseCase(),
NavigationRailUseCase(),
AppBarUseCase(),
TabBarViewUseCase(),
];