flutter_profile/lib/src/widgets/profile/profile_style.dart

37 lines
1.1 KiB
Dart
Raw Normal View History

2022-10-31 17:15:05 +01:00
// SPDX-FileCopyrightText: 2022 Iconica
//
// SPDX-License-Identifier: BSD-3-Clause
2022-08-26 16:28:40 +02:00
import 'package:flutter/material.dart';
2022-08-26 15:31:42 +02:00
/// ProfielStyle is used to set a couple of style paramaters for the
2024-02-02 11:07:55 +01:00
/// whole profile page.
2022-09-20 14:11:38 +02:00
///
/// AvatarStyle is used to set some styling for the avatar using [AvatarStyle].
///
/// PagePaddign is used to set the padding around the whole profile page
2024-02-02 11:07:55 +01:00
/// with its parent.
2022-09-20 14:11:38 +02:00
///
/// BetweenDefaultitemPadding sets te padding between each user data item.
2022-08-26 15:31:42 +02:00
class ProfileStyle {
const ProfileStyle({
2022-11-24 14:56:21 +01:00
this.avatarTextStyle = const TextStyle(),
2022-08-26 16:28:40 +02:00
this.betweenDefaultItemPadding = 10,
this.pagePadding = EdgeInsets.zero,
this.bottomActionTextStyle,
2022-08-26 15:31:42 +02:00
});
2022-09-20 14:11:38 +02:00
/// AvatarStyle can be used to set some avatar styling parameters.
2022-11-24 14:56:21 +01:00
final TextStyle avatarTextStyle;
2022-09-20 14:11:38 +02:00
/// PagePadding can be set to determine the padding of the whole page
2024-02-02 11:07:55 +01:00
/// againt the profile page parent.
2022-08-26 16:28:40 +02:00
final EdgeInsetsGeometry pagePadding;
2022-09-20 14:11:38 +02:00
/// BetweenDefaultItemPadding sets the
2022-08-26 16:28:40 +02:00
final double betweenDefaultItemPadding;
/// Bottom action text style
final TextStyle? bottomActionTextStyle;
2022-08-26 15:31:42 +02:00
}