https://github.com/alexhcjp/gap
https://github.com/alexhcjp/gap
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/alexhcjp/gap
- Owner: AlexHCJP
- License: other
- Created: 2024-09-19T09:02:38.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-21T22:22:36.000Z (almost 2 years ago)
- Last Synced: 2025-06-03T16:16:41.130Z (about 1 year ago)
- Language: Dart
- Size: 261 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# FlexSpacing
This is a simple package that allows you to add spacing to your Flutter widgets using the FlexSpacing widget.
## Example
```dart
import 'package:gaps/gaps.dart';
Widget build(BuildContext context) {
return FlexSpacing( //This is Column
direction: Axis.vertical,
gap: 10,
children: [
Container(
color: Colors.red,
width: double.infinity,
height: 100,
),
Container(
color: Colors.green,
width: double.infinity,
height: 100,
),
Container(
color: Colors.blue,
width: double.infinity,
height: 100,
),
],
);
}
Widget build(BuildContext context) {
return FlexSpacing( // This is Row
direction: Axis.horizontal,
gap: 10,
children: [
Container(
color: Colors.red,
width: 100,
height: 100,
),
Container(
color: Colors.green,
width: 100,
height: 100,
),
Container(
color: Colors.blue,
width: 100,
height: 100,
),
],
);
}
```