intrinsic_dimension 0.2.1 copy "intrinsic_dimension: ^0.2.1" to clipboard
intrinsic_dimension: ^0.2.1 copied to clipboard

A widget that offers the dimensions (width and height) and the start offset of the widget you return from a builder callback function.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'src/connection_example.dart';
import 'src/dimension_example.dart';

enum ExampleType { dimension, connection }

void main() => runApp(
      const MyApp(
        exampleType: ExampleType.connection,
      ),
    );

class MyApp extends StatelessWidget {
  const MyApp({
    Key? key,
    this.exampleType = ExampleType.dimension,
  }) : super(key: key);

  final ExampleType exampleType;

  @override
  Widget build(BuildContext context) {
    late Widget _home;

    switch (exampleType) {
      case ExampleType.connection:
        _home = const ConnectionExample();
        break;
      default:
        _home = const DimensionExample();
    }

    return MaterialApp(
      title: 'Intrinsic Dimension Example',
      debugShowCheckedModeBanner: false,
      home: _home,
    );
  }
}
16
likes
0
pub points
87%
popularity

Publisher

verified publishernetwriper.com

A widget that offers the dimensions (width and height) and the start offset of the widget you return from a builder callback function.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on intrinsic_dimension