flutter_screenutil 5.9.0 copy "flutter_screenutil: ^5.9.0" to clipboard
flutter_screenutil: ^5.9.0 copied to clipboard

A flutter plugin for adapting screen and font size.Guaranteed to look good on different models

example/lib/main.dart

import 'package:device_preview/device_preview.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'src/first_method.dart' as firstMethod;
import 'src/second_method.dart' as secondMethod;

void main() {
  const method = int.fromEnvironment('method', defaultValue: 1);
  runApp(
    DevicePreview(
      enabled: kDebugMode && kIsWeb,
      builder: (context) {
        return method == 1 ? firstMethod.MyApp() : secondMethod.MyApp();
      },
    ),
  );
}
4132
likes
130
pub points
100%
popularity

Publisher

unverified uploader

A flutter plugin for adapting screen and font size.Guaranteed to look good on different models

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_screenutil