From ff0eca6463564f24df3e108bc1872c0338e9cedd Mon Sep 17 00:00:00 2001 From: Shi-Hao Hong Date: Fri, 16 Aug 2019 14:19:54 -0400 Subject: [PATCH] Toggle buttons docs (#38635) * Add toggle buttons assets * Reorder video location, reduce height of videos * Reduce height of toggle buttons assets --- packages/flutter/lib/src/material/toggle_buttons.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/flutter/lib/src/material/toggle_buttons.dart b/packages/flutter/lib/src/material/toggle_buttons.dart index c3800a5bff7..2c3bdcc8f8a 100644 --- a/packages/flutter/lib/src/material/toggle_buttons.dart +++ b/packages/flutter/lib/src/material/toggle_buttons.dart @@ -26,6 +26,8 @@ import 'toggle_buttons_theme.dart'; /// Each toggle's behavior can be configured by the [onPressed] callback, which /// can update the [isSelected] list however it wants to. /// +/// {@animation 700 150 https://flutter.github.io/assets-for-api-docs/assets/material/toggle_buttons_simple.mp4} +/// /// Here is an implementation that allows for multiple buttons to be /// simultaneously selected, while requiring none of the buttons to be /// selected. @@ -45,6 +47,8 @@ import 'toggle_buttons_theme.dart'; /// ), /// ``` /// +/// {@animation 700 150 https://flutter.github.io/assets-for-api-docs/assets/material/toggle_buttons_required_mutually_exclusive.mp4} +/// /// Here is an implementation that requires mutually exclusive selection /// while requiring at least one selection. Note that this assumes that /// [isSelected] was properly initialized with one selection. @@ -70,6 +74,8 @@ import 'toggle_buttons_theme.dart'; /// ), /// ``` /// +/// {@animation 700 150 https://flutter.github.io/assets-for-api-docs/assets/material/toggle_buttons_mutually_exclusive.mp4} +/// /// Here is an implementation that requires mutually exclusive selection, /// but allows for none of the buttons to be selected. /// ```dart @@ -94,6 +100,8 @@ import 'toggle_buttons_theme.dart'; /// ), /// ``` /// +/// {@animation 700 150 https://flutter.github.io/assets-for-api-docs/assets/material/toggle_buttons_required.mp4} +/// /// Here is an implementation that allows for multiple buttons to be /// simultaneously selected, while requiring at least one selection. Note /// that this assumes that [isSelected] was properly initialized with one