emoji_feedback 0.1.0 copy "emoji_feedback: ^0.1.0" to clipboard
emoji_feedback: ^0.1.0 copied to clipboard

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);
              },
            ),
          ],
        ),
      ),
    );
  }
}
28
likes
40
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on emoji_feedback