Skip to content

ASHIR14/widget_switcher

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published