flutter_extend 0.0.1
flutter_extend: ^0.0.1 copied to clipboard
Simple, Stylish Flutter Extensions for any project!
Effortless Flutter Development with Prebuilt Extension Methods
Features #
- π Prebuilt Extension Methods: Simplify common Flutter development tasks with prebuilt extensions for widgets, colors, strings, and more.
- π¨ Custom MaterialColor Generator: Easily create dynamic MaterialColor palettes from any Color.
- π Convenient String Manipulations: Transform and format strings effortlessly.
- π Widget Utilities: Add padding, margins, and styling directly to widgets.
Getting started #
- Add this package to your pubspec.yaml file:
dependencies:
your_package_name: ^1.0.0
- Run the following command to get the package:
flutter pub get
- Import the package in your Dart file:
import 'package:your_package_name/your_package_name.dart';
Usage #
Below you'll find some useful tips and tricks for working with snazzy_extensions.
You need to call the extension methods starting with the sz prefix as outlined below.
String Extensions #
1. Capitalize
Use the extension method szCapitalize to capitalize words in a String.
String text = "hello world";
print(text.szCapitalize()); // Output: Hello World