flutter/examples/api/lib/material
Taha Tesser 689924529b
Updated Material 3 Slider Samples (#159795)
Fixes [Update `Slider` samples for updated Material 3 Slider
spec](https://github.com/flutter/flutter/issues/159794)

### Description

This updates Slider sample to include toggle to opt in to the updated
Material 3 appearance . Remove redundant sample an asset diagram.

### Preview

<img width="840" alt="Screenshot 2024-12-04 at 16 03 47"
src="https://github.com/user-attachments/assets/b6db9efe-8416-460e-a745-bdf37c97ed61">


## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [ ] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel
on [Discord].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[Tree Hygiene]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md
[test-exempt]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md
[Features we expect every widget to implement]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes
[Discord]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md
[Data Driven Fixes]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
2024-12-05 17:55:24 +00:00
..
about Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
action_buttons Add missing links to examples that aren't linked anywhere (#130422) 2023-07-12 20:08:05 +00:00
action_chip Enable dangling_library_doc_comments and library_annotations lints (#117365) 2022-12-20 16:03:21 -08:00
animated_icon Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
app [Reland] Introduce AnimationStyle (#138721) 2023-11-20 15:24:41 -08:00
app_bar Add a custom shape example for AppBar.shape (#146421) 2024-04-08 18:42:07 +00:00
autocomplete Implement on clauses (#152706) 2024-08-06 01:54:52 +00:00
badge Add Badge example (#148053) 2024-05-09 16:47:16 +00:00
banner Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
bottom_app_bar Refactoring if chains into switch statements (#144905) 2024-03-11 23:04:57 +00:00
bottom_navigation_bar Enable strict-inference (#135043) 2023-09-20 19:59:08 +00:00
bottom_sheet Add AnimationStyle to showBottomSheet and showModalBottomSheet (#145536) 2024-03-25 08:39:05 +00:00
button_style Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
button_style_button Introduce iconAlignment for the buttons with icon (#137348) 2024-02-12 17:08:20 +00:00
card Add Card.filled and Card.outlined factory methods (#136229) 2023-11-01 23:29:49 +00:00
carousel Create CarouselView widget - Part 2 (#149775) 2024-07-17 19:56:01 +00:00
checkbox Factor out deprecated names in example code (#151374) 2024-07-08 19:06:54 +00:00
checkbox_list_tile Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
chip [Reland] Introduce ChipAnimationStyle to override default chips animations durations (#149876) 2024-06-13 19:28:21 +00:00
choice_chip Fix references in examples (#151204) 2024-07-03 17:56:48 +00:00
color_scheme Reland Add test for dynamic_content_color.0.dart (#158547) 2024-11-14 08:14:17 +00:00
context_menu Implemented CupertinoButton new styles/sizes (fixes #92525) (#152845) 2024-08-12 19:26:39 +00:00
data_table Factor out deprecated names in example code (#151374) 2024-07-08 19:06:54 +00:00
date_picker Fix: showDatePicker should have a simple example in the docs (#156196) 2024-10-22 17:04:23 +00:00
dialog Adaptive alert dialog (#124336) 2023-04-18 23:00:03 +00:00
divider Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
drawer Add missing example links (#130521) 2023-07-17 18:24:49 +00:00
dropdown Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
dropdown_menu Fix DropdownMenu does not rematch initialSelection when entries have changed (#155757) 2024-10-02 12:03:20 +00:00
elevated_button Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
expansion_panel docimports for API samples (#151606) 2024-07-11 20:36:55 +00:00
expansion_tile Add AnimationStyle to ExpansionTile (#139664) 2023-12-06 16:40:24 +00:00
filled_button Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
filter_chip Rename Sample classes (#124080) 2023-04-04 20:34:29 +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 Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
icon_button Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
ink Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
ink_well Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
input_chip Add an example for InputChip generated by user input (#130645) 2023-09-01 00:02:04 +00:00
input_decorator un-break ThemeData equality (#154695) 2024-09-09 21:49:09 +00:00
list_tile un-break ThemeData equality (#154695) 2024-09-09 21:49:09 +00:00
material_state Add tests for material_state_mouse_cursor.0.dart API example. (#145987) 2024-04-03 02:39:46 +00:00
menu_anchor Update MenuAnchor API examples (#156404) 2024-10-08 19:15:07 +00:00
navigation_bar Fix NavigationBar example overflow alignment (#159034) 2024-11-16 22:24:39 +00:00
navigation_drawer Add missing example links (#130521) 2023-07-17 18:24:49 +00:00
navigation_rail Add Badge widget to NavigationBar and NavigationRail examples (#129834) 2023-07-11 09:30:05 +00:00
outlined_button Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
page_transitions_theme Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
paginated_data_table PaginatedDataTable improvements (#131374) 2023-08-15 00:55:07 +00:00
platform_menu_bar Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
popup_menu [Reland] Introduce AnimationStyle (#138721) 2023-11-20 15:24:41 -08:00
progress_indicator Updated Material 3 Progress Indicators Samples (#158925) 2024-12-05 17:54:54 +00:00
radio Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
radio_list_tile Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
range_slider Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
refresh_indicator Added new constructor RefreshIndicator.noSpinner() (#152075) 2024-08-23 20:37:24 +00:00
reorderable_list docimports for API samples (#151606) 2024-07-11 20:36:55 +00:00
scaffold Add tests for scaffold.of.#.dart API examples. (#147637) 2024-05-20 08:02:09 +00:00
scrollbar fix a Scrollbar example crash (#127925) 2023-09-08 09:40:49 +00:00
search_anchor Implement on clauses (#152706) 2024-08-06 01:54:52 +00:00
segmented_button Add SegmentedButton.styleFrom (#137542) 2024-01-03 21:26:02 +00:00
selectable_region Add SelectionListener/SelectedContentRange (#154202) 2024-11-26 00:14:30 +00:00
selection_area Add SelectionListener/SelectedContentRange (#154202) 2024-11-26 00:14:30 +00:00
selection_container Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
slider Updated Material 3 Slider Samples (#159795) 2024-12-05 17:55:24 +00:00
snack_bar Test snack bar examples (#147774) 2024-05-23 18:54:11 +00:00
stepper Adds support for StepStyle visual property bundle to the Step widget (#140825) 2024-01-12 16:35:08 +00:00
switch Use .fromMap() constructors in example code (#152535) 2024-08-01 22:28:22 +00:00
switch_list_tile Rename Sample classes (#124080) 2023-04-04 20:34:29 +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 Use .fromMap() constructors in example code (#152535) 2024-08-01 22:28:22 +00:00
text_field Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
text_form_field add forceErrorText to FormField & TextFormField. (#132903) 2024-06-18 17:52:21 +00:00
theme Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
theme_data Fix Typos (#137292) 2023-10-26 23:55:38 +00:00
time_picker Remove textScaleFactor references from flutter/flutter (#142271) 2024-01-26 19:12:24 +00:00
toggle_buttons Updated TabBar and ToggleButtons examples (#128088) 2023-06-02 01:05:31 +00:00
tooltip Tooltip docs: Recommend setting preferBelow to false in theme (#135879) 2023-11-03 20:18:36 +00:00
widget_state_input_border WidgetStateInputBorder (#157190) 2024-10-22 23:45:41 +00:00