smiley_rating_dialog_pro 1.0.0 copy "smiley_rating_dialog_pro: ^1.0.0" to clipboard
smiley_rating_dialog_pro: ^1.0.0 copied to clipboard

A new Flutter package which helps you to implement beautiful customizable Smiley Rating Dialog.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:smiley_rating_dialog_pro/smiley_rating_dialog.dart';

void main() => runApp(MaterialApp(
      debugShowCheckedModeBanner: false,
      home: HomeScreen(),
    ));

class HomeScreen extends StatefulWidget {
  @override
  _HomeScreenState createState() => _HomeScreenState();
}

class _HomeScreenState extends State<HomeScreen> {
  @override
  Widget build(BuildContext context) {
    return Center(
      child: TextButton(
        onPressed: () {
          showDialog(
              barrierDismissible: true,
              context: context,
              builder: (context) => SmileyRatingDialog(
                    title: Text(
                      'Smiley Dialog',
                      textAlign: TextAlign.center,
                    ),
                    starColor: Colors.red,
                    isRoundedButtons: true,
                    positiveButtonText: 'Ok',
                    negativeButtonText: 'Cancel',
                    positiveButtonColor: Colors.amber,
                    negativeButtonColor: Colors.amber,
                    onCancelPressed: () => Navigator.pop(context),
                    onSubmitPressed: (rating) {
                      Navigator.pop(context);
                    },
                  ));
        },
        child: Text('Show Dialog'),
      ),
    );
  }
}
3
likes
150
pub points
3%
popularity

Publisher

unverified uploader

A new Flutter package which helps you to implement beautiful customizable Smiley Rating Dialog.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on smiley_rating_dialog_pro