flutter_responsive_util 0.0.1 flutter_responsive_util: ^0.0.1 copied to clipboard
This Flutter package provides a set of utilities and widgets to make your app responsive across different device types and screen sizes.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutter_responsive_util
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flutter_responsive_util: ^0.0.1
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_responsive_util/extensions/extensions.dart';
import 'package:flutter_responsive_util/flutter_responsive.dart';
import 'package:flutter_responsive_util/utils/enums.dart';
import 'package:flutter_responsive_util/utils/media.dart';
import 'package:flutter_responsive_util/widgets/adaptive_container.dart';
import 'package:flutter_responsive_util/widgets/aspect_ratio_builder.dart';
import 'package:flutter_responsive_util/widgets/responsive_builder.dart';
import 'package:flutter_responsive_util/widgets/responsive_grid.dart';
import 'package:flutter_responsive_util/widgets/size_builder.dart';