flutter_login_widget/lib/src/config/spacer_options.dart

36 lines
980 B
Dart
Raw Normal View History

2023-05-08 18:09:19 +02:00
import 'package:flutter/material.dart';
@immutable
class LoginSpacerOptions {
const LoginSpacerOptions({
this.spacerBeforeTitle,
2023-05-08 18:09:19 +02:00
this.spacerAfterTitle,
this.spacerAfterSubtitle,
this.spacerAfterImage,
this.spacerAfterForm,
this.spacerAfterButton,
2023-05-08 18:09:19 +02:00
this.formFlexValue = 1,
});
/// Flex value for the spacer before the title.
final int? spacerBeforeTitle;
2023-05-08 18:09:19 +02:00
/// Flex value for the spacer between the title and subtitle.
final int? spacerAfterTitle;
/// Flex value for the spacer between the subtitle and image.
final int? spacerAfterSubtitle;
/// Flex value for the spacer between the image and form.
final int? spacerAfterImage;
/// Flex value for the spacer between the form and button.
final int? spacerAfterForm;
/// Flex value for the spacer after the button.
final int? spacerAfterButton;
2023-05-08 18:09:19 +02:00
/// Flex value for the form. Defaults to 1. Use this when also using the other spacer options.
final int formFlexValue;
}