v0.0.8
equal_space
समान रूप से अंतराल वाली पंक्तियों और स्तंभों के निर्माण के लिए एक Flutter पैकेज।
11लाइक 3630-दिन डाउनलोड160Pub अंक
AndroidiOSWebmacOSWindowsLinux
RanaSharjeelShji/equal_space open-source repository details.
{"sdk":"flutter"}{"sdk":"flutter"}^3.0.0यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
Equal Space is a Flutter package that allows you stop using SizedBox for spacing between widgets. it simplifies the process of creating evenly spaced rows and columns in your Flutter applications. This package provides custom widgets, SpacedRow and SpacedColumn, which make it easy to manage spacing and alignment of child widgets.
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SpacedColumn(
space: 26.0,
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.end,
textDirection: TextDirection.rtl,
verticalDirection: VerticalDirection.down,
textBaseline: TextBaseline.alphabetic,
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),
],
);
}
}
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SpacedRow(
space: 26.0,
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.end,
textDirection: TextDirection.rtl,
verticalDirection: VerticalDirection.down,
textBaseline: TextBaseline.alphabetic,
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),
],
);
}
}
flutter pub add equal_space
import 'package:equal_space/equal_space.dart';
space.SpacedRow and SpacedColumn widgets shows how effective this package is.