widget_switcher 0.1.0
widget_switcher: ^0.1.0 copied to clipboard
An animated widget that lets you switch between widgets.
Widget Switcher #
An animated widget that lets you switch between widgets.
(This package is still in development)

Features #
- Provide widgets of your choosing to switch between
- Adjust the animation according to your choice
- Use nested widgets for more options
Getting started #
In your flutter project add the dependency:
dependencies:
widget_switcher: any
Import the package:
import 'package:widget_switcher/widget_switcher.dart';
Usage #
Scaffold(
body: Center(
child: WidgetSwitcher(
firstWidget: textField(),
secondWidget: button(),
switchToSecondWidget: isUnlocked,
animationDuration: 500,
),
),
)
Check the example project for a full example