flutter_screenutil_plus 1.4.0 copy "flutter_screenutil_plus: ^1.4.0" to clipboard
flutter_screenutil_plus: ^1.4.0 copied to clipboard

A powerful Flutter plugin for adaptive screen and font scaling with CSS-like breakpoints and SwiftUI-style size classes. Includes responsive scaling and breakpoint-aware widgets.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_screenutil_plus/flutter_screenutil_plus.dart';
import 'package:flutter_screenutil_plus_example/home_page.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    // Set the fit size (Find your UI design, look at the dimensions of the device screen and fill it in, unit in dp)
    return ScreenUtilPlusInit(
      designSize: const Size(360, 690),
      minTextAdapt: true,
      splitScreenMode: true,
      autoRebuild: false,
      // NEW: Set autoRebuild to false for better performance
      // When false, only widgets using context.su or R-widgets will rebuild
      // autoRebuild: false,
      // Use builder only if you need to use library outside ScreenUtilPlusInit context
      builder: (context, child) {
        return MaterialApp(
          debugShowCheckedModeBanner: false,
          title: 'Flutter ScreenUtil Plus Example',
          // Use ResponsiveTheme to automatically scale all text styles
          theme: ResponsiveTheme.fromTheme(
            ThemeData(primarySwatch: Colors.blue, useMaterial3: true),
          ),
          home: child,
        );
      },
      child: const HomePage(),
    );
  }
}
4
likes
160
points
744
downloads

Publisher

unverified uploader

Weekly Downloads

A powerful Flutter plugin for adaptive screen and font scaling with CSS-like breakpoints and SwiftUI-style size classes. Includes responsive scaling and breakpoint-aware widgets.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

equatable, flutter

More

Packages that depend on flutter_screenutil_plus