dimengen 0.6.0 copy "dimengen: ^0.6.0" to clipboard
dimengen: ^0.6.0 copied to clipboard

Flutter Dimensions Generator (it helps you centralize spacing and size values, improve UI consistency, and boost code readability and maintainability)

example/lib/main.dart

import 'package:dimengen_example/spaces.dart';
import 'package:flutter/material.dart';

import 'dimensions.dart';

void main() {
  runApp(const MyApp());
}

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Container(
          padding: Insets.m,
          margin: Insets.m,
          decoration: BoxDecoration(
            borderRadius: Borders.sTopLeft,
            color: Colors.blue.shade100,
          ),
          child: Column(
            children: [

              Text('Design Dimensions'),
              Spaces.mVertical,
              Text('M: ${Dimensions.m}'),
              Spaces.h(Dimensions.m),

            ],
          )
        ),
      ),
    );
  }
}
6
likes
145
points
378
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter Dimensions Generator (it helps you centralize spacing and size values, improve UI consistency, and boost code readability and maintainability)

Repository (GitHub)
View/report issues

Topics

#dimensions #generator #sizes #uikit #gen

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, flutter, source_gen

More

Packages that depend on dimengen