emoji_feedback 0.1.0
emoji_feedback: ^0.1.0 copied to clipboard

Flutter Android iOS web

An mood feedback component which could be used for rating the user's mood.

example/lib/main.dart

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

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'FlipCard',
      home: HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Emoji Feedback'),
      ),
      body: Container(
        padding: EdgeInsets.only(top: 48.0, left: 18.0),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          children: <Widget>[
            Padding(
              padding: const EdgeInsets.all(8.0),
              child: Text(
                'How was the help you recieved?',
                style: Theme.of(context)
                    .textTheme
                    .body1
                    .copyWith(color: Colors.grey),
              ),
            ),
            EmojiFeedback(
              onChange: (index) {
                print(index);
              },
            ),
          ],
        ),
      ),
    );
  }
}
11
likes
100
pub points
71%
popularity

An mood feedback component which could be used for rating the user's mood.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

fedeoo.zf@gmail.com

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on emoji_feedback