Skip to content

Flutter ribbon packeg modified and named ribbon-safe

License

Notifications You must be signed in to change notification settings

imijanur/ribbon-safe

Repository files navigation

ribbon_safe

A Ribbon decoration on a widget.

use a Ribbon to decorate a Widget such as container,card...etc.

no clip apply to ribbon title,so check the title length

Installing:

In your pubspec.yaml

dependencies:

ribbon_safe: 
  git:
      url: https://github.com/imijanur/ribbon-safe.git

Example Usage:

import 'package:ribbon_safe/ribbon_safe.dart';
RibbonLocation location = RibbonLocation.topEnd;

Ribbon(

  nearLength: nearLength,

  farLength: farLength,

  title: 'New!',

  titleStyle: TextStyle(

    color: Colors.greenAccent,

    fontSize: 18,

    fontWeight: FontWeight.bold,
   ),

   color: Colors.redAccent,

   location: location,

child: Container(),
)

TODO: Put a short description of the package here that helps potential users know whether this package might be useful for them.

Features

TODO: List what your package can do. Maybe include images, gifs, or videos.

Getting started

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.