An animated widget that lets you switch between widgets.
(This package is still in development)
- Provide widgets of your choosing to switch between
- Adjust the animation according to your choice
- Use nested widgets for more options
In your flutter project add the dependency:
dependencies:
widget_switcher: any
Import the package:
import 'package:widget_switcher/widget_switcher.dart';
Scaffold(
body: Center(
child: WidgetSwitcher(
firstWidget: textField(),
secondWidget: button(),
switchToSecondWidget: isUnlocked,
animationDuration: 500,
),
),
)
Check the example project for a full example