mirror of
https://github.com/flutter/flutter
synced 2024-10-13 11:42:54 +00:00
Wrap FilterChip inside a Material widget (#85825)
This commit is contained in:
parent
53125203ea
commit
f26e54bd88
|
@ -437,15 +437,17 @@ class _MaterialStateBorderSide extends MaterialStateBorderSide {
|
||||||
///
|
///
|
||||||
/// @override
|
/// @override
|
||||||
/// Widget build(BuildContext context) {
|
/// Widget build(BuildContext context) {
|
||||||
/// return FilterChip(
|
/// return Material(
|
||||||
/// label: const Text('Select chip'),
|
/// child: FilterChip(
|
||||||
/// selected: isSelected,
|
/// label: const Text('Select chip'),
|
||||||
/// onSelected: (bool value) {
|
/// selected: isSelected,
|
||||||
/// setState(() {
|
/// onSelected: (bool value) {
|
||||||
/// isSelected = value;
|
/// setState(() {
|
||||||
/// });
|
/// isSelected = value;
|
||||||
/// },
|
/// });
|
||||||
/// shape: SelectedBorder(),
|
/// },
|
||||||
|
/// shape: SelectedBorder(),
|
||||||
|
/// ),
|
||||||
/// );
|
/// );
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
|
|
Loading…
Reference in a new issue