easy_custom_dialog 0.0.1 copy "easy_custom_dialog: ^0.0.1" to clipboard
easy_custom_dialog: ^0.0.1 copied to clipboard

Bu paket kolay bir şekilde custom dialogu kullanabilmenizi sağlar

example/lib/main.dart

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

void main() {
  runApp(MaterialApp(
    debugShowCheckedModeBanner: false,
    title: 'Easy Custom Dialog',
    home: HomeScreen(),
  ));
}

class HomeScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: FlatButton(
          onPressed: () {
            showDialog(
                context: context,
                child: EasyCustomDialog(
                  onCancelEvent: () {
                    Navigator.pop(context);
                  },
                  onApplyEvent: () {
                    Navigator.pop(context);
                    print('onApply Triggered');
                  },
                  contentChildren: [
                    TextFormField(
                      decoration: InputDecoration(hintText: 'Enter your name'),
                      onChanged: (value) {
                        print(value);
                      },
                    )
                  ],
                ));
          },
          child: Text('Show Dialog'),
        ),
      ),
    );
  }
}
1
likes
40
pub points
0%
popularity

Publisher

unverified uploader

Bu paket kolay bir şekilde custom dialogu kullanabilmenizi sağlar

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on easy_custom_dialog