flutter_widget_extension_methods 1.0.0 flutter_widget_extension_methods: ^1.0.0 copied to clipboard
SwiftUI-style methods to make widget styling easier and more readable.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutter_widget_extension_methods
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flutter_widget_extension_methods: ^1.0.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutter_widget_extension_methods/extensions/accesibility_extensions.dart';
import 'package:flutter_widget_extension_methods/extensions/animation_and_motion_extensions.dart';
import 'package:flutter_widget_extension_methods/extensions/input_extensions.dart';
import 'package:flutter_widget_extension_methods/extensions/interaction_extensions.dart';
import 'package:flutter_widget_extension_methods/extensions/layout_extensions.dart';
import 'package:flutter_widget_extension_methods/extensions/material_extensions.dart';
import 'package:flutter_widget_extension_methods/extensions/misc_extensions.dart';
import 'package:flutter_widget_extension_methods/extensions/multi_child_extensions.dart';
import 'package:flutter_widget_extension_methods/extensions/painting_extensions.dart';
import 'package:flutter_widget_extension_methods/extensions/scrolling_extensions.dart';
import 'package:flutter_widget_extension_methods/widget_extensions.dart';