flutter_extend 0.0.3
flutter_extend: ^0.0.3 copied to clipboard
Simple, Efficient Flutter Extensions! Supercharge your Flutter development with a collection of easy-to-use, lightweight, and practical extension methods.
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:
flutter_extend: ^0.0.1
- Run the following command to get the package:
flutter pub get
- Import the package in your Dart file:
import 'package:flutter_extend/flutter_extend.dart';
Usage #
Below you'll find some useful tips and tricks for working with flutter_extend.
You need to call the extension methods starting with the x prefix as outlined below.
Context Extensions #
1. Get ThemeData
Use the extension method xTheme to capitalize words in a String.
context.xTheme // Output: Theme.of(context)
2. Get ColorScheme
Use the extension method xColorScheme to capitalize words in a String.
context.xColorScheme // Output: Theme.of(context).colorScheme