flutter_widget_extension_methods 0.0.3 flutter_widget_extension_methods: ^0.0.3 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 Dart:
$ dart pub add flutter_widget_extension_methods
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 dart pub get
):
dependencies:
flutter_widget_extension_methods: ^0.0.3
Alternatively, your editor might support dart pub get
or 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';