Giter VIP home page Giter VIP logo

bastiui_smileys's Introduction

smiley_ui

GitHub stars GitHub license Coverage Status

Implementation of BastiUi design in Flutter. (Inspired by Aloïs Deniel implementation)

Try the demo

Getting started

For now this package is not available on pub.dev so, you can add the package by adding the following to your pubspec.yaml:

smiley_ui:
  git:
    url: https://github.com/TesteurManiak/bastiui_smileys.git
    ref: main # Optional, use it if you want a specific branch or tag.

Documentation

Base widget which draws an animated smiley.

Code Sample

SmileyWidget(
    expression: SmileyExpression.happy,
);

Screenshot

SmileyWidget

Supported Parameters

  • expression: The expression of the smiley.
  • isSelected: Selection state of the smiley.
  • isEnabled: Define if the widget is enabled or not. (Manage the opacity on the widget)
  • onTap: Callback when the widget is tapped on.

Widget which displays a list of smileys and allows selection.

Code Sample

SmileysSelection();

Screenshot

SmileysSelection

Supported Parameters

  • expressions: List of smiley expressions to display.
  • onSmileySelected: Callback triggered when the user selects or unselect a smiley.

Widget to use as the content of a bottom sheet.

This widget will display the SmileysSelection widget alongside a title and a submit button which will be disabled while the user did not select a smiley.

Code Sample

SmileyBottomSheet();

// Or use
showSmileysBottomSheet(context);

Screenshot

SmileyBottomSheet

Supported Parameters

  • title: Title of the bottom sheet.
  • submitButtonText: Text that will be used for the submit button.
  • submitButtonStyle: ButtonStyle used for the submit button.

Dialog which contains the SmileysSelection widget.

Code Sample

SmileysDialog();

// Or use
showSmileysDialog(context);

Screenshot

SmileysDialog

Supported Parameters

  • title: Title of the dialog.
  • submitButtonText: Text of the submit button.
  • cancelButtonText: Text of the cancel button.
  • submitButtonStyle: Style of the submit button.
  • cancelButtonStyle: Style of the cancel button.

Credits

bastiui_smileys's People

Contributors

testeurmaniak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

arsarsars1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.