Spacing
C2CSpacing
The C2CSpacing class defines a set of constants representing different spacing values used for layout and design purposes in your Flutter application.
These constants can help maintain consistent spacing and alignment throughout your user interface.
| NAME | SIZE |
|---|---|
| xxSmall | 4 |
| xSmall | 8 |
| small | 12 |
| medium | 16 |
| large | 24 |
| xLarge | 32 |
| xxLarge | 40 |
| xxxLarge | 52 |
Usage
Container(
padding: const EdgeInsets.symmetric(
horizontal: C2CSpacing.medium,
vertical: C2CSpacing.large,
),
)
VSpacing and HSpacing Widgets
The VSpacing and HSpacing widgets are custom Flutter widgets designed to add vertical and horizontal spacing between child widgets in a Flutter layout.
These widgets are particularly useful for maintaining consistent spacing in your app's user interface.
Usage:
import 'package:c2c_core/c2c_core.dart';
Column(
children: [
VSpacing(), // Adds medium vertical spacing
Text("Widget 1"),
VSpacing.medium, // Adds medium vertical spacing
Text("Widget 2"),
HSpacing(), // Adds small horizontal spacing
Text("Widget 3"),
HSpacing.medium, // Adds small horizontal spacing
Text("Widget 3"),
],
)