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

Adds a use-case screen for `RadioListTile`, similar to the `CheckBoxListTile`. This screen can help test scenarios such as the one reported in https://github.com/flutter/flutter/issues/126805.
40 lines
972 B
Dart
40 lines
972 B
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 'auto_complete.dart';
|
|
import 'badge.dart';
|
|
import 'check_box_list_tile.dart';
|
|
import 'date_picker.dart';
|
|
import 'dialog.dart';
|
|
import 'material_banner.dart';
|
|
import 'navigation_bar.dart';
|
|
import 'radio_list_tile.dart';
|
|
import 'slider.dart';
|
|
import 'text_button.dart';
|
|
import 'text_field.dart';
|
|
import 'text_field_password.dart';
|
|
|
|
abstract class UseCase {
|
|
String get name;
|
|
String get route;
|
|
Widget build(BuildContext context);
|
|
}
|
|
|
|
final List<UseCase> useCases = <UseCase>[
|
|
CheckBoxListTile(),
|
|
DialogUseCase(),
|
|
SliderUseCase(),
|
|
TextFieldUseCase(),
|
|
TextFieldPasswordUseCase(),
|
|
DatePickerUseCase(),
|
|
AutoCompleteUseCase(),
|
|
BadgeUseCase(),
|
|
MaterialBannerUseCase(),
|
|
NavigationBarUseCase(),
|
|
TextButtonUseCase(),
|
|
RadioListTileUseCase(),
|
|
];
|