find_size 1.0.0 copy "find_size: ^1.0.0" to clipboard
find_size: ^1.0.0 copied to clipboard

A Flutter plugin which helps you to easily find and track widget size.

example/lib/main.dart

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

void main() => runApp(const MyApp());

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

  @override
  Widget build(BuildContext context) {
    /// Build and return the main user interface for the application.
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Find Size Plugin Example'),
        ),
        body: Center(
          child: FindSize(
            onChange: (Size size) {
              /// Callback function to handle size changes and print the size.
              print("Button size: $size");
            },
            child: ElevatedButton(
              onPressed: () {},
              child: const Text('Click Me'),
            ),
          ),
        ),
      ),
    );
  }
}
2
likes
160
points
28
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin which helps you to easily find and track widget size.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on find_size