widget_switcher 0.1.0 copy "widget_switcher: ^0.1.0" to clipboard
widget_switcher: ^0.1.0 copied to clipboard

An animated widget that lets you switch between widgets.

Widget Switcher #

license

An animated widget that lets you switch between widgets.

(This package is still in development)

Widget Switcher

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

8
likes
160
points
9
downloads

Publisher

unverified uploader

Weekly Downloads

An animated widget that lets you switch between widgets.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on widget_switcher