flutter_responsive_helper 1.0.2 copy "flutter_responsive_helper: ^1.0.2" to clipboard
flutter_responsive_helper: ^1.0.2 copied to clipboard

A flutter package for making responsive application from your UI design easier and faster.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_responsive_helper/flutter_responsive_helper.dart';

class ResponsiveExample extends StatefulWidget {
  const ResponsiveExample({super.key});

  @override
  State<ResponsiveExample> createState() => _ResponsiveExampleState();
}

class _ResponsiveExampleState extends State<ResponsiveExample> {
  @override
  void initState() {
    // TODO: implement initState
    initializeSize(396, 812);
  }

  @override
  Widget build(BuildContext context) {
    return SafeArea(
      child: Scaffold(
        body: Column(
          children: [
            GestureDetector(
              onTap: () {
                print(800.h(context));
                print(MediaQuery.of(context).size.height);
              },
              child: Container(
                width: 390.w(context),
                height: 800.h(context),
                color: Colors.black,
              ),
            ),
          ],
        ),
      ),
    );
  }
}
12
likes
150
pub points
46%
popularity

Publisher

verified publishermalayp.tech

A flutter package for making responsive application from your UI design easier and faster.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_responsive_helper