flutter_margin_widget 0.0.3 copy "flutter_margin_widget: ^0.0.3" to clipboard
flutter_margin_widget: ^0.0.3 copied to clipboard

Flutter Margin widget that adds margin around your widget. Instead of repeatedly wrap your widget around a container, use this widget the same way you would use Padding.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_margin_widget/flutter_margin_widget.dart';

void main() {
  runApp(MaterialApp(
    home: Scaffold(
      body: const Margin(
        margin: EdgeInsets.all(16),
        child: Text('Hello Flutter'),
      ),
    ),
  ));
}
4
likes
140
pub points
0%
popularity

Publisher

verified publisherghuyfel.com

Flutter Margin widget that adds margin around your widget. Instead of repeatedly wrap your widget around a container, use this widget the same way you would use Padding.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_margin_widget