customprompt 0.2.5 copy "customprompt: ^0.2.5" to clipboard
customprompt: ^0.2.5 copied to clipboard

outdated

Customprompt is a simple animated modal dialog for flutter IOS, Android and Web apps.

example/example.dart

import 'package:customprompt/customprompt.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(new HelloWorld());
}

class HelloWorld extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Custom Prompt',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Custom Prompt example'),
        ),
        body: Center(
          child: FlatButton(
            color: Colors.green,
            shape: RoundedRectangleBorder(
              borderRadius: BorderRadius.circular(8.0),
            ),
            onPressed: () {
              CustomPrompt(
                context: context,
                animDuration: 800,
                color: Colors.red,
                type: 'input',
                transparent: true,
                curve: Curves.bounceOut,
                btnOneOnClick: (value) {
                  print('Input value ${value}');
                },
              ).alert();
            },
            child: Text('Show Modal'),
          ),
        ),
      ),
    );
  }

  void submited(value) => print(value);
}
8
likes
0
points
123
downloads

Publisher

unverified uploader

Weekly Downloads

Customprompt is a simple animated modal dialog for flutter IOS, Android and Web apps.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on customprompt