flutter_magic 1.0.3 flutter_magic: ^1.0.3 copied to clipboard
A new Flutter syntactic sugar project.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutter_magic
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flutter_magic: ^1.0.3
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_magic/extensions/color_extensions.dart';
import 'package:flutter_magic/extensions/context_extensions.dart';
import 'package:flutter_magic/extensions/layout_extensions.dart';
import 'package:flutter_magic/extensions/number_extensions.dart';
import 'package:flutter_magic/extensions/string_extensions.dart';
import 'package:flutter_magic/extensions/text_extensions.dart';
import 'package:flutter_magic/extensions/widget_extensions.dart';
import 'package:flutter_magic/magic.dart';