All Projects → yako-dev → Flutter_badges

yako-dev / Flutter_badges

Licence: apache-2.0
A flutter package for creating badges.

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to Flutter badges

Flutter Status Alert
Display Apple system-like self-hiding status alerts. It is well suited for notifying user without interrupting user flow.
Stars: ✭ 111 (-71.61%)
Mutual labels:  mobile, ui-components, widget
Flutter Settings Ui
Create native settings for Flutter app in a minutes.
Stars: ✭ 363 (-7.16%)
Mutual labels:  mobile, ui-components, widget
Nativescript Drop Down
A NativeScript DropDown widget.
Stars: ✭ 107 (-72.63%)
Mutual labels:  ui-components, widget
Incubator Weex Ui
🏄 A rich interaction, lightweight, high performance UI library based on Weex.
Stars: ✭ 4,793 (+1125.83%)
Mutual labels:  mobile, ui-components
Nativescript Ui Feedback
This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Stars: ✭ 110 (-71.87%)
Mutual labels:  mobile, ui-components
Ka Table
Lightweight MIT React Table component for both TS and JS with Sorting, Filtering, Grouping, Virtualization, Editing and many more
Stars: ✭ 117 (-70.08%)
Mutual labels:  ui-components, widget
Fancyaccordionview
An Android fancy accordion view
Stars: ✭ 64 (-83.63%)
Mutual labels:  ui-components, widget
Pure Css3 Animated Border
Pure CSS3 animated border for all html element.
Stars: ✭ 63 (-83.89%)
Mutual labels:  ui-components, widget
Jeelizglassesvtowidget
JavaScript/WebGL glasses virtual try on widget. Real time webcam experience, robust to all lighting conditions, high end 3D PBR rendering, easy to integrate, fallback to server-side rendering
Stars: ✭ 134 (-65.73%)
Mutual labels:  mobile, widget
Ci Buildstats
Little widget to display AppVeyor, TravisCI, CircleCI, GitHub Actions or Azure Pipelines build history charts and other SVG badges.
Stars: ✭ 134 (-65.73%)
Mutual labels:  badge, widget
chatKit
Open Source React Chat Widget. Ready for use and can be connected to any backend like Chatbot/NLP/Live Chat engine or messenger.
Stars: ✭ 42 (-89.26%)
Mutual labels:  widget, ui-components
Components
MobileUI was created thinking of making your hybrid application faster and smaller since you only install what you are really going to use for UI.
Stars: ✭ 125 (-68.03%)
Mutual labels:  mobile, ui-components
flutter json view
📄 Displaying json models in a Flutter widget
Stars: ✭ 28 (-92.84%)
Mutual labels:  widget, ui-components
Colorpicker
jQuery UI widget for color picking (similar to the one in Microsoft Office 2010).
Stars: ✭ 271 (-30.69%)
Mutual labels:  ui-components, widget
Overwatch Ui
A UI library of Overwatch, built with Vue.js
Stars: ✭ 365 (-6.65%)
Mutual labels:  ui-components
Swift Badge
A badge view for iOS/tvOS written in Swift
Stars: ✭ 379 (-3.07%)
Mutual labels:  badge
Slwidget
轮子合集。角标、滚动选择器、自动换行布局、侧滑返回。
Stars: ✭ 363 (-7.16%)
Mutual labels:  badge
Neogfx
Cross-platform GPU-oriented C++ application/game framework
Stars: ✭ 362 (-7.42%)
Mutual labels:  widget
Cordova Plugin Badge
Access and modify badge numbers
Stars: ✭ 386 (-1.28%)
Mutual labels:  badge
Sofi
an OS agnostic UI module for Python
Stars: ✭ 378 (-3.32%)
Mutual labels:  widget

Badges for Flutter

Pub Version

Installing:

In your pubspec.yaml

dependencies:
  badges: ^1.2.0
import 'package:badges/badges.dart';


Breaking changes:

Check prerelease on pub.dev for null safety version If you want to use badges v1.2.0 and above, you need to upgrade your flutter version at least to v1.22.0-12.0.pre..



Basic Usage:

    Badge(
      badgeContent: Text('3'),
      child: Icon(Icons.settings),
    )


Animations:

BadgeAnimationType.slide BadgeAnimationType.scale BadgeAnimationType.fade

Chips:

Sometimes you may want to use chip but it's too big, even if set padding to zero. This is where Badge comes handy.

    Chip(
      padding: EdgeInsets.all(0),
      backgroundColor: Colors.deepPurple,
      label: Text('BADGE', style: TextStyle(color: Colors.white)),
    ),
    Badge(
      toAnimate: false,
      shape: BadgeShape.square,
      badgeColor: Colors.deepPurple,
      borderRadius: BorderRadius.circular(8),
      badgeContent: Text('BADGE', style: TextStyle(color: Colors.white)),
    ),

Custom Usage

There are several options that allow for more control:

Properties Description
Widget badgeContent The content of badge. Usually Text or Icon.
Color badgeColor Background color of the badge.
Widget child The main widget. By default it's below the red badge. Usually Icon, IconButton, Text or button.
double elevation Shadow of the badge.
bool toAnimate Whether animate badge when badge content changed or not.
BadgePosition position Can be one of BadgePosition.topStart(), BadgePosition.topEnd(), BadgePosition.bottomStart(), BadgePosition.bottomEnd(). Sometimes you want to create unique badge position or create new one manually. For this use BadgePosition.topEnd(top: -12, end: -20) or BadgePosition(start, top, end, bottom).
BadgeShape shape BadgeShape.circle or BadgeShape.square. You can use borderRadius to change border radius of badge of you use square BadgeShape.square.
BorderRadiusGeometry borderRadius Border radius of badge. Applies only if BadgeShape.square is used.
EdgeInsetsGeometry padding The padding of badge content.
Duration animationDuration The duration of badge animation when badge content is changed.
BadgeAnimationType animationType Can be one of BadgeAnimationType.slide, BadgeAnimationType.scale or BadgeAnimationType.fade.
bool showBadge Hide or show badge with animation using bool flag.
AlignmentGeometry alignment Alignment of the whole widget
bool ignorePointer Enable or disable (default) ignore pointer option
BorderSide borderSide Adds a border to the badge


License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].