2023-05-08 18:09:19 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
@immutable
|
|
|
|
class LoginSpacerOptions {
|
|
|
|
const LoginSpacerOptions({
|
2023-07-27 14:04:40 +02:00
|
|
|
this.spacerBeforeTitle,
|
2023-05-08 18:09:19 +02:00
|
|
|
this.spacerAfterTitle,
|
|
|
|
this.spacerAfterSubtitle,
|
|
|
|
this.spacerAfterImage,
|
|
|
|
this.spacerAfterForm,
|
2023-07-27 14:04:40 +02:00
|
|
|
this.spacerAfterButton,
|
2023-05-08 18:09:19 +02:00
|
|
|
this.formFlexValue = 1,
|
|
|
|
});
|
|
|
|
|
2023-07-27 14:04:40 +02:00
|
|
|
/// 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;
|
|
|
|
|
2023-07-27 14:04:40 +02:00
|
|
|
/// 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;
|
|
|
|
}
|