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

A flexible widget that allows creating rows, columns, and wrap layouts with configurable properties.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('SmartWrap Example')),
        body: Center(
          child: SmartWrap(
            type: WrapType.wrap, // Choose between Row, Column, and Wrap
            spacing: 10.0,
            runSpacing: 10.0,
            wrapAlignment: WrapAlignment.center,
            children: [
              Container(width: 50, height: 50, color: Colors.red),
              Container(width: 50, height: 50, color: Colors.green),
              Container(width: 50, height: 50, color: Colors.blue),
              Container(width: 50, height: 50, color: Colors.orange),
            ],
          ),
        ),
      ),
    );
  }
}
4
likes
0
points
59
downloads

Publisher

verified publishercodelife.in

Weekly Downloads

A flexible widget that allows creating rows, columns, and wrap layouts with configurable properties.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on smart_wrap