flutter_common_utilities 0.1.0
flutter_common_utilities: ^0.1.0 copied to clipboard
A Flutter utility package for creating customizable gradient containers with titles and subtitles.
Sure, here's a template for your README file for the FancyContainers package:
<!--
This README describes the package. If you publish this package to pub.dev,
this README's contents appear on the landing page for your package.
For information about how to write a good package README, see the guide for
[writing package pages](https://dart.dev/tools/pub/writing-package-pages).
For general information about developing packages, see the Dart guide for
[creating packages](https://dart.dev/guides/libraries/create-packages)
and the Flutter guide for
[developing packages and plugins](https://flutter.dev/to/develop-packages).
-->
# FancyContainers
A Flutter package that provides customizable gradient containers with title and subtitle.
## Features
- Create gradient containers with custom colors.
- Customize container dimensions and text styling.
- Ideal for creating stylish UI components.
## Getting started
To use this package, add `fancy_containers` as a dependency in your `pubspec.yaml` file.
```yaml
dependencies:
fancy_containers: ^1.0.0
For help getting started with Flutter, view the online documentation.
Usage #
You can use the FancyContainers widget to create gradient containers with title and subtitle.
import 'package:flutter/material.dart';
import 'package:fancy_containers/fancy_containers.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: FancyContainers(
width: 300,
height: 200,
color1: Colors.blue,
color2: Colors.green,
title: 'Hello',
textColor: Colors.white,
subtitle: 'Welcome to Fancy Containers',
subtitleColor: Colors.white70,
),
),
),
);
}
}
For more examples, check the /example folder in the repository.
Additional information #
Visit the GitHub repository for more information. Feel free to file issues or contribute to the package.
Replace `your-username` in the links with your actual GitHub username or repository name. This template gives a basic structure for potential users to understand what your package does, how to use it, and where to find more information or contribute. Adjust the content and links as per your package specifics.