@@ -2,10 +2,10 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// Flutter code sample for [SegmentedButton].
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
/// Flutter code sample for [SegmentedButton].
|
||||
|
||||
void main() {
|
||||
runApp(const SegmentedButtonApp());
|
||||
}
|
||||
@@ -47,7 +47,6 @@ class SingleChoice extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _SingleChoiceState extends State<SingleChoice> {
|
||||
|
||||
Calendar calendarView = Calendar.day;
|
||||
|
||||
@override
|
||||
@@ -91,7 +90,10 @@ class _MultipleChoiceState extends State<MultipleChoice> {
|
||||
ButtonSegment<Sizes>(value: Sizes.extraSmall, label: Text('XS')),
|
||||
ButtonSegment<Sizes>(value: Sizes.small, label: Text('S')),
|
||||
ButtonSegment<Sizes>(value: Sizes.medium, label: Text('M')),
|
||||
ButtonSegment<Sizes>(value: Sizes.large, label: Text('L'),),
|
||||
ButtonSegment<Sizes>(
|
||||
value: Sizes.large,
|
||||
label: Text('L'),
|
||||
),
|
||||
ButtonSegment<Sizes>(value: Sizes.extraLarge, label: Text('XL')),
|
||||
],
|
||||
selected: selection,
|
||||
|
||||
Reference in New Issue
Block a user