info_label 1.0.0 copy "info_label: ^1.0.0" to clipboard
info_label: ^1.0.0 copied to clipboard

Data for display in labels or widgets.

Claro, aquí tienes un ejemplo detallado de un archivo README para tu biblioteca info_label:

Info Label #

Flutter Pub Package License

Overview #

Info Label is a Flutter library that provides customizable components for displaying information labels in Flutter applications. These labels can be used to convey various types of information, such as success messages, errors, warnings, or additional details, with flexible styling options.

Features #

  • InfoLabelWidget: A widget for creating customizable information labels with text, icons, and various styling options.
  • TypeDistributionColor: An enum defining different color distribution configurations for labels to optimize readability and visual appeal.
  • TypeInfoLabel: An enum representing different types of labels with associated meanings and colors for quick and easy labeling of information.

Installation #

To use this package, add info_label as a dependency in your pubspec.yaml file. For example:

dependencies:
  flutter:
    sdk: flutter
  info_label: ^1.0.0

Then, import the library in your Dart code:

import 'package:info_label/info_label.dart';

Usage #

Here's a simple example demonstrating how to use the InfoLabelWidget:

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

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('Info Label Example'),
        ),
        body: Center(
          child: InfoLabel(
            text: 'Hello, World!',
            backgroundColor: Colors.blue,
            textColor: Colors.white,
            typeColor: TypeDistributionColor.solid,
          ),
        ),
      ),
    );
  }
}

Documentation #

Contributing #

Contributions to this project are welcome! If you have any ideas, suggestions, or find any issues, feel free to open an issue or submit a pull request on GitHub.

License #

This project is licensed under the MIT License - see the LICENSE file for details.

3
likes
0
points
118
downloads

Publisher

verified publisherjhonacode.com

Weekly Downloads

Data for display in labels or widgets.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

alchemist, flutter

More

Packages that depend on info_label