responsive_framework 0.0.2 copy "responsive_framework: ^0.0.2" to clipboard
responsive_framework: ^0.0.2 copied to clipboard

outdated

Make Flutter apps responsive. Automatically adapt UI to different screen sizes.

example/lib/main.dart

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:responsive_framework/responsive_framework.dart';
import 'package:responsive_framework/utils/bouncing_scroll_behavior.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      builder: (context, widget) => ResponsiveWrapper.builder(
          BouncingScrollWrapper.builder(context, widget),
          maxWidth: 1200,
          minWidth: 450,
          defaultScale: true,
          breakpoints: [
            ResponsiveBreakpoint(breakpoint: 600, name: MOBILE),
            ResponsiveBreakpoint(breakpoint: 800, name: TABLET, scale: true),
            ResponsiveBreakpoint(breakpoint: 1200, name: DESKTOP),
            ResponsiveBreakpoint(breakpoint: 1400, name: "4K", scale: true),
          ],
          background: Container(color: Color(0xFFF5F5F5))),
      home: Scaffold(
        body: Container(
          constraints: BoxConstraints.expand(),
          padding: EdgeInsets.symmetric(horizontal: 24, vertical: 40),
          color: Colors.green,
          alignment: Alignment.topCenter,
          child: Text(
            "Responsive Framework\nis Amazing!",
            style: TextStyle(
                color: Colors.white, fontSize: 32, fontWeight: FontWeight.bold),
            textAlign: TextAlign.center,
          ),
        ),
      ),
      debugShowCheckedModeBanner: false,
    );
  }
}
2847
likes
0
pub points
99%
popularity

Publisher

verified publishercodelessly.com

Make Flutter apps responsive. Automatically adapt UI to different screen sizes.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on responsive_framework