mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 14:58:34 +00:00
Beta (#1234)
This commit is contained in:
@@ -47,7 +47,8 @@ class ColorChangingIcon extends ImplicitlyAnimatedWidget {
|
||||
final double? size;
|
||||
|
||||
@override
|
||||
_ColorChangingIconState createState() => _ColorChangingIconState();
|
||||
AnimatedWidgetBaseState<ColorChangingIcon> createState() =>
|
||||
_ColorChangingIconState();
|
||||
}
|
||||
|
||||
class _ColorChangingIconState
|
||||
@@ -81,12 +82,10 @@ class CloseButton extends StatefulWidget {
|
||||
final VoidCallback onPressed;
|
||||
|
||||
@override
|
||||
CloseButtonState createState() {
|
||||
return CloseButtonState();
|
||||
}
|
||||
State<CloseButton> createState() => _CloseButtonState();
|
||||
}
|
||||
|
||||
class CloseButtonState extends State<CloseButton> {
|
||||
class _CloseButtonState extends State<CloseButton> {
|
||||
bool tapInProgress = false;
|
||||
|
||||
@override
|
||||
|
||||
@@ -75,10 +75,10 @@ class SettingsItem extends StatefulWidget {
|
||||
final SettingsItemCallback? onPress;
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => SettingsItemState();
|
||||
State<SettingsItem> createState() => _SettingsItemState();
|
||||
}
|
||||
|
||||
class SettingsItemState extends State<SettingsItem> {
|
||||
class _SettingsItemState extends State<SettingsItem> {
|
||||
bool pressed = false;
|
||||
|
||||
@override
|
||||
|
||||
@@ -13,7 +13,7 @@ class TriviaView extends StatefulWidget {
|
||||
const TriviaView({this.id, this.restorationId, Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_TriviaViewState createState() => _TriviaViewState();
|
||||
State<TriviaView> createState() => _TriviaViewState();
|
||||
}
|
||||
|
||||
/// Possible states of the game.
|
||||
|
||||
@@ -66,7 +66,7 @@ class PressableCard extends StatefulWidget {
|
||||
final Duration duration;
|
||||
|
||||
@override
|
||||
_PressableCardState createState() => _PressableCardState();
|
||||
State<PressableCard> createState() => _PressableCardState();
|
||||
}
|
||||
|
||||
class _PressableCardState extends State<PressableCard> {
|
||||
|
||||
Reference in New Issue
Block a user