dialog_switcher 0.0.5
dialog_switcher: ^0.0.5 copied to clipboard

Allows user to switch widgets gracefully within a dialog with Animation.

DialogSwitcher For Flutter #

pub package likes popularity pub points

Allows user to switch widgets gracefully within a dialog with Animation.

Sample #

Usage #

To use this plugin, add dialog_switcher as a dependency in your pubspec.yaml file.

  dependencies:
    flutter:
      sdk: flutter
    dialog_switcher:

Sample Usage

import 'package:flutter/material.dart';
import 'package:transition_switcher/dialog_switcher.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'DialogSwitcher',
      debugShowCheckedModeBanner: false,
      home: SafeArea(
        child: Scaffold(
          body: Container(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                Text(
                  "Sample Usage",
                  style: TextStyle(fontSize: 20),
                ),
                DialogSwitcher(
                  dialogBackgroundColor: Colors.transparent,
                  dialogElevation: 0,
                  frontChild: Container(
                    width: 300,
                    height: 300,
                    color: Colors.amber,
                  ),
                  backChild: Container(
                    width: 300,
                    height: 300,
                    color: Colors.pinkAccent,
                  ),
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }
}

And a lot more.... There is a lot of customization available which is self explantory. If you ever face a problem, feel free to create an issue.

See the example directory for a complete sample app.

Created & Maintained By Shivam Verma #

13
likes
120
pub points
23%
popularity

Allows user to switch widgets gracefully within a dialog with Animation.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

shivamthegreat.sv@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on dialog_switcher