From be40991082b7abf019ab285e68518f2a21608a35 Mon Sep 17 00:00:00 2001 From: Qun Cheng <36861262+QuncCccccc@users.noreply.github.com> Date: Thu, 18 May 2023 16:34:07 -0700 Subject: [PATCH] Update `useMaterial3` api doc (#127142) This is to update the components section for `useMaterial3` api doc. --- .../flutter/lib/src/material/theme_data.dart | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/packages/flutter/lib/src/material/theme_data.dart b/packages/flutter/lib/src/material/theme_data.dart index 4ed08ebb42..350d4ab97d 100644 --- a/packages/flutter/lib/src/material/theme_data.dart +++ b/packages/flutter/lib/src/material/theme_data.dart @@ -1148,14 +1148,15 @@ class ThemeData with Diagnosticable { /// * Typography: [Typography] (see table above) /// /// ### Components - /// * Badges: [Badge] (*new*) + /// \* *new* means the new widgets/methods created since the last stable release. + /// * Badges: [Badge] /// * Bottom app bar: [BottomAppBar] /// * Bottom sheets: [BottomSheet] /// * Buttons - /// - Common buttons: [ElevatedButton], [FilledButton] (*new*), FilledButton.tonal] (*new*), [OutlinedButton], [TextButton] + /// - Common buttons: [ElevatedButton], [FilledButton], [FilledButton.tonal], [OutlinedButton], [TextButton] /// - FAB: [FloatingActionButton], [FloatingActionButton.extended] - /// - Icon buttons: [IconButton] - /// - Segmented buttons: [SegmentedButton] (*new*, replacing [ToggleButtons]) + /// - Icon buttons: [IconButton], [IconButton.filled] (*new*), [IconButton.filledTonal] (*new*), [IconButton.outlined] (*new*) + /// - Segmented buttons: [SegmentedButton] (replacing [ToggleButtons]) /// * Cards: [Card] /// * Checkbox: [Checkbox], [CheckboxListTile] /// * Chips: @@ -1163,22 +1164,23 @@ class ThemeData with Diagnosticable { /// - [FilterChip], [ChoiceChip] (used for single selection filter chips), /// - [InputChip] /// * Date pickers: [showDatePicker], [showDateRangePicker], [DatePickerDialog], [DateRangePickerDialog], [InputDatePickerFormField] - /// * Dialogs: [AlertDialog], [Dialog.fullscreen] (*new*) + /// * Dialogs: [AlertDialog], [Dialog.fullscreen] /// * Divider: [Divider], [VerticalDivider] /// * Lists: [ListTile] - /// * Menus: [MenuAnchor] (*new*), [DropdownMenu] (*new*), [MenuBar] (*new*) - /// * Navigation bar: [NavigationBar] (*new*, replacing [BottomNavigationBar]) - /// * Navigation drawer: [NavigationDrawer] (*new*, replacing [Drawer]) + /// * Menus: [MenuAnchor], [DropdownMenu], [MenuBar] + /// * Navigation bar: [NavigationBar] (replacing [BottomNavigationBar]) + /// * Navigation drawer: [NavigationDrawer] (replacing [Drawer]) /// * Navigation rail: [NavigationRail] /// * Progress indicators: [CircularProgressIndicator], [LinearProgressIndicator] /// * Radio button: [Radio], [RadioListTile] + /// * Search: [SearchBar] (*new*), [SearchAnchor] (*new*), /// * Snack bar: [SnackBar] /// * Slider: [Slider], [RangeSlider] /// * Switch: [Switch], [SwitchListTile] - /// * Tabs: [TabBar] + /// * Tabs: [TabBar], [TabBar.secondary] (*new*) /// * TextFields: [TextField] together with its [InputDecoration] /// * Time pickers: [showTimePicker], [TimePickerDialog] - /// * Top app bar: [AppBar], [SliverAppBar], [SliverAppBar.medium] (*new*), [SliverAppBar.large] (*new*) + /// * Top app bar: [AppBar], [SliverAppBar], [SliverAppBar.medium], [SliverAppBar.large] /// /// In addition, this flag enables features introduced in Android 12. /// * Stretch overscroll: [MaterialScrollBehavior]