flutter_size 0.0.4 copy "flutter_size: ^0.0.4" to clipboard
flutter_size: ^0.0.4 copied to clipboard

In flutter_size,you can add and get device orientation,width,height of the device and widgets and You also get the full height and width of particular devices.

example/example.dart

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

class ExampleScreen extends StatefulWidget {
  const ExampleScreen({Key? key}) : super(key: key);

  @override
  State<ExampleScreen> createState() => _ExampleScreenState();
}

class _ExampleScreenState extends State<ExampleScreen> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: SizedBox(
          width: context.width(0.4),
          height: context.height(0.3),
          child: const Text("Example"),
        ),
      ),
    );
  }
}
4
likes
150
points
207
downloads

Publisher

unverified uploader

Weekly Downloads

In flutter_size,you can add and get device orientation,width,height of the device and widgets and You also get the full height and width of particular devices.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_size