atreeon_get_child_size 0.1.1+1 copy "atreeon_get_child_size: ^0.1.1+1" to clipboard
atreeon_get_child_size: ^0.1.1+1 copied to clipboard

A widget that returns the size of the child object. The [onChange] callback will run everytime the widget's size has changed.

example/lib/main.dart

// ignore_for_file: use_key_in_widget_constructors

import 'package:atreeon_menu_flutter/menuItem.dart';
import 'package:atreeon_menu_flutter/menuSand.dart';
import 'package:example/GetChildSize_Demo.dart';
import 'package:example/ScreenSize_Demo.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);

  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  Widget build(BuildContext context) => MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: MyHomePage(),
      );
}

class MyHomePage extends StatelessWidget {
  Widget build(BuildContext context) {
    return SafeArea(
      child: MenuSand(
        "get_child_size demos",
        [
          MenuItemAdi("GetChildSize_Demo", () => const GetChildSize_Demo()),
          MenuItemAdi("ScreenSizeDemo", () =>  const ScreenSizeDemo()),
        ],
      ),
    );
  }
}
2
likes
150
pub points
57%
popularity

Publisher

verified publisheratreeon.com

A widget that returns the size of the child object. The [onChange] callback will run everytime the widget's size has changed.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on atreeon_get_child_size