smiley_rating_dialog 0.0.1 copy "smiley_rating_dialog: ^0.0.1" to clipboard
smiley_rating_dialog: ^0.0.1 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/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: RaisedButton(
        onPressed: () {
          showDialog(
              barrierDismissible: true,
              context: context,
              builder: (context) => SmileyRatingDialog(
                    title: Text('Smiley Dialog'),
                    starColor: Colors.red,
                    isRoundedButtons: true,
                    positiveButtonText: 'Ok',
                    negativeButtonText: 'Cancel',
                    positiveButtonColor: Colors.amber,
                    negativeButtonColor: Colors.amber,
                    onCancelPressed: () => Navigator.pop(context),
                    onSubmitPressed: (rating) {},
                  ));
        },
        child: Text('Show Dialog'),
      ),
    );
  }
}
1
likes
30
pub points
29%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on smiley_rating_dialog