flutter/examples/api/test/material
Taha Tesser b8dcb0c3c5
Update Material 3 LinearProgressIndicator for new visual style (#154817)
Related to [Update both `ProgressIndicator` for Material 3 redesign](https://github.com/flutter/flutter/issues/141340)

### Code sample

<details>
<summary>expand to view the code sample</summary> 

```dart
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  bool isRTL = false;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(

        body: Directionality(
          textDirection: isRTL ? TextDirection.rtl : TextDirection.ltr,
          child: Center(
            child: Column(
              spacing: 2.0,
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                const Text('Default LinearProgressIndicator'),
                const Padding(
                  padding: EdgeInsets.all(16.0),
                  child: LinearProgressIndicator(
                    value: 0.45,
                  ),
                ),
                const Text('Default indefinite LinearProgressIndicator'),
                const Padding(
                  padding: EdgeInsets.all(16.0),
                  child: LinearProgressIndicator(),
                ),
                const Text('Updated height and border radius'),
                Padding(
                  padding: const EdgeInsets.all(16.0),
                  child: LinearProgressIndicator(
                    value: 0.25,
                    minHeight: 16.0,
                    borderRadius: BorderRadius.circular(16.0),
                  ),
                ),
                const Text('Updated stop indicator color and radius'),
                Padding(
                  padding: const EdgeInsets.all(16.0),
                  child: LinearProgressIndicator(
                    value: 0.74,
                    minHeight: 16.0,
                    borderRadius: BorderRadius.circular(16.0),
                    stopIndicatorColor: Theme.of(context).colorScheme.error,
                    stopIndicatorRadius: 32.0,
                  ),
                ),
                const Text('Track gap and stop indicator radius set to 0'),
                Padding(
                  padding: const EdgeInsets.all(16.0),
                  child: LinearProgressIndicator(
                    value: 0.50,
                    minHeight: 16.0,
                    borderRadius: BorderRadius.circular(16.0),
                    trackGap: 0,
                    stopIndicatorRadius: 0,
                  ),
                ),
              ],
            ),
          ),
        ),
        floatingActionButton: FloatingActionButton.extended(
          onPressed: () {
            setState(() {
              isRTL = !isRTL;
            });
          },
          label:  const Text('Toggle Direction'),
        ),
      ),
    );
  }
}
```

</details>

### Preview

<img width="824" alt="Screenshot 2024-09-09 at 13 53 10" src="https://github.com/user-attachments/assets/d12e56a5-f196-4011-8266-c7ab96be96b2">
2024-10-30 18:14:11 +00:00
..
about Add tests for about_list_tile.0.dart (#150181) 2024-06-19 07:40:31 +00:00
action_buttons Remove double MaterialApp wrap from api samples (#150055) 2024-06-12 05:22:23 +00:00
action_chip Update Chips examples and rename files (#108538) 2022-07-29 07:17:06 +00:00
animated_icon Move AnimatedIcons example and fix typo in cupertino/text_selection_toolbar.dart (#113937) 2022-10-25 07:27:06 +00:00
app Redo flutter engine flutter autoroll bd3d1990 485b 419c 8c55 b27e3eeb15ed 1727117767 (#155579) 2024-09-24 00:21:06 +00:00
app_bar Test of AppBarMediumApp and AppBarLargeApp (#153973) 2024-09-04 19:46:16 +00:00
autocomplete Fix bug in Autocomplete example (#127219) 2023-05-22 16:55:21 +00:00
badge Add Badge example (#148053) 2024-05-09 16:47:16 +00:00
banner Add tests for material banner example (#147733) 2024-05-23 18:48:09 +00:00
bottom_app_bar Add Tests for bottom_app_bar api examples (#156501) 2024-10-21 12:31:21 +00:00
bottom_navigation_bar Write tests for API examples of BottomNavigationBar and IconButton (#138188) 2023-11-27 17:26:37 +00:00
bottom_sheet Add AnimationStyle to showBottomSheet and showModalBottomSheet (#145536) 2024-03-25 08:39:05 +00:00
button_style Added missing tests for ButtonStyle example (#147457) 2024-05-07 09:00:27 +00:00
button_style_button Introduce iconAlignment for the buttons with icon (#137348) 2024-02-12 17:08:20 +00:00
card Reland "Reland - Introduce tone-based surfaces and accent color add-ons - Part 2" (#144273) 2024-02-28 13:55:50 -08:00
carousel Create CarouselView widget - Part 2 (#149775) 2024-07-17 19:56:01 +00:00
checkbox Write unit tests for API Examples of checkbox.0, checkbox.1 (#144888) 2024-03-12 16:25:58 +00:00
checkbox_list_tile Add Material 3 SwitchListTile example and update existing examples (#119714) 2023-02-06 09:02:37 +00:00
chip Add tests for deletable_chip_attributes.on_deleted.0.dart (#152361) 2024-07-29 06:52:25 +00:00
choice_chip Fix typos (#121171) 2023-02-23 19:43:21 +00:00
color_scheme Fix ColorScheme example and tests (#150018) 2024-06-12 05:07:23 +00:00
context_menu Implement SelectionArea single click/tap gestures (#132682) 2023-09-28 01:42:16 +00:00
data_table Write Tests for API Examples of cupertino_text_field.0, data_table.0, icon_button.2 & ink_well.0 (#139258) 2023-11-30 20:07:00 +00:00
date_picker Fix: showDatePicker should have a simple example in the docs (#156196) 2024-10-22 17:04:23 +00:00
dialog Remove double MaterialApp wrap from api samples (#150055) 2024-06-12 05:22:23 +00:00
divider Remove double MaterialApp wrap from api samples (#150055) 2024-06-12 05:22:23 +00:00
drawer Add missing example links (#130521) 2023-07-17 18:24:49 +00:00
dropdown Remove double MaterialApp wrap from api samples (#150055) 2024-06-12 05:22:23 +00:00
dropdown_menu Add test for dropdown_menu.1.dart (#149547) 2024-06-07 07:13:02 +00:00
elevated_button Write Tests for API Examples of snack_bar.0, elevated_button.0, stepper.0, radio.0, filled_button.0, outlined_button.0 & card.0 (#138987) 2023-11-28 23:57:10 +00:00
expansion_panel Add test for expansion_panel_list.expansion_panel_list_radio.0_test.dart (#151730) 2024-07-25 20:49:32 +00:00
expansion_tile Add AnimationStyle to ExpansionTile (#139664) 2023-12-06 16:40:24 +00:00
filled_button Write Tests for API Examples of snack_bar.0, elevated_button.0, stepper.0, radio.0, filled_button.0, outlined_button.0 & card.0 (#138987) 2023-11-28 23:57:10 +00:00
filter_chip Update Chips examples and rename files (#108538) 2022-07-29 07:17:06 +00:00
flexible_space_bar Add test for flexible_space_bar.0.dart (#157107) 2024-10-21 15:17:14 +00:00
floating_action_button Add FAB Additional Color Mappings example (#133453) 2023-08-29 17:31:02 +00:00
floating_action_button_location Add test for standard_fab_location.0.dart (#149225) 2024-06-07 07:08:53 +00:00
icon_button Add test for icon_button.3.dart (#149988) 2024-06-18 15:03:59 +00:00
ink Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
ink_well Write Tests for API Examples of cupertino_text_field.0, data_table.0, icon_button.2 & ink_well.0 (#139258) 2023-11-30 20:07:00 +00:00
input_chip Add an example for InputChip generated by user input (#130645) 2023-09-01 00:02:04 +00:00
input_decorator Test InputDecoration API examples (#148560) 2024-06-20 16:02:07 +00:00
list_tile Updated custom ListTile examples (#128071) 2023-06-01 16:21:42 -07:00
material_state Add tests for material_state_outlined_border.0.dart (#156814) 2024-10-15 14:36:36 +00:00
menu_anchor Update MenuAnchor API examples (#156404) 2024-10-08 19:15:07 +00:00
navigation_bar Add Badge widget to NavigationBar and NavigationRail examples (#129834) 2023-07-11 09:30:05 +00:00
navigation_drawer Add missing example links (#130521) 2023-07-17 18:24:49 +00:00
navigation_rail Add test for navigation_rail.extended_animation.0_test.dart (#157222) 2024-10-22 03:55:21 +00:00
outlined_button Write Tests for API Examples of snack_bar.0, elevated_button.0, stepper.0, radio.0, filled_button.0, outlined_button.0 & card.0 (#138987) 2023-11-28 23:57:10 +00:00
page_transitions_theme Remove 1745 decorative breaks (#123259) 2023-03-22 21:12:22 +00:00
paginated_data_table PaginatedDataTable improvements (#131374) 2023-08-15 00:55:07 +00:00
platform_menu_bar Add test for platform_menu_bar.0.dart (#157328) 2024-10-23 06:57:13 +00:00
popup_menu Remove double MaterialApp wrap from api samples (#150055) 2024-06-12 05:22:23 +00:00
progress_indicator Update Material 3 LinearProgressIndicator for new visual style (#154817) 2024-10-30 18:14:11 +00:00
radio Add test for radio.toggleable.0.dart (#149153) 2024-05-29 18:30:57 +00:00
radio_list_tile Add Material 3 RadioListTile example and update existing examples (#119716) 2023-02-03 16:27:43 +00:00
range_slider Add test for range_slider.0.dart (#152152) 2024-07-26 13:18:26 +00:00
refresh_indicator Added new constructor RefreshIndicator.noSpinner() (#152075) 2024-08-23 20:37:24 +00:00
reorderable_list Remove double MaterialApp wrap from api samples (#150055) 2024-06-12 05:22:23 +00:00
scaffold Add tests for scaffold messenger state (#152735) 2024-08-02 19:46:04 +00:00
scrollbar Add test for scrollbar.1.dart (#151463) 2024-07-19 09:23:32 +00:00
search_anchor Fix formatting issues in search_anchor.0_test.dart (#152669) 2024-08-01 08:59:17 +00:00
segmented_button Add test for segmented_button.0.dart (#150676) 2024-06-29 06:29:33 +00:00
selectable_region Add test for selectable_region.0.dart (#157258) 2024-10-22 07:25:25 +00:00
selection_area Added missing test for SelectionArea example (#151585) 2024-08-26 11:29:33 +00:00
selection_container Add test for selection_container.0_test.dart (#157079) 2024-10-17 15:32:31 +00:00
slider Add Material 3 Slider example (#115638) 2022-12-01 00:00:19 +00:00
snack_bar Test snack bar examples (#147774) 2024-05-23 18:54:11 +00:00
stepper testAdd tests for stepper.controls_builder.0.dart (#150669) 2024-07-09 22:13:12 +00:00
switch Adaptive Switch (#130425) 2023-11-07 10:26:23 -08:00
switch_list_tile Add Material 3 SwitchListTile example and update existing examples (#119714) 2023-02-06 09:02:37 +00:00
tab_controller Add test for tab_controller.1.dart API example. (#148189) 2024-05-20 15:33:16 +00:00
tabs Introduce TabBar.indicatorAnimation to customize tab indicator animation (#151746) 2024-07-26 11:54:28 +00:00
text_button Updated the smiley TextButton example again (#144630) 2024-03-05 20:57:02 +00:00
text_field test material text field example (#147864) 2024-05-14 20:46:46 +00:00
text_form_field Reland Add tests for form_text_field.1.dart (#150481) (#150696) (#150750) 2024-06-25 12:00:22 +00:00
theme Add tests for theme_extension.1.dart API example. (#145819) 2024-04-03 23:39:17 +00:00
theme_data Updated the ThemeData API example (#130954) 2023-07-20 13:12:34 -07:00
time_picker Remove double MaterialApp wrap from api samples (#150055) 2024-06-12 05:22:23 +00:00
toggle_buttons Remove double MaterialApp wrap from api samples (#150055) 2024-06-12 05:22:23 +00:00
tooltip Introduce exitDuration to Tooltip for mouse pointer devices (#138321) 2023-12-07 21:20:06 +00:00
widget_state_input_border WidgetStateInputBorder (#157190) 2024-10-22 23:45:41 +00:00