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

37 lines
1.1 KiB
Dart

// SPDX-FileCopyrightText: 2022 Iconica
//
// SPDX-License-Identifier: BSD-3-Clause
import 'package:flutter/material.dart';
/// ProfielStyle is used to set a couple of style paramaters for the
/// whole profile page.
///
/// AvatarStyle is used to set some styling for the avatar using [AvatarStyle].
///
/// PagePaddign is used to set the padding around the whole profile page
/// with its parent.
///
/// BetweenDefaultitemPadding sets te padding between each user data item.
class ProfileStyle {
const ProfileStyle({
this.avatarTextStyle = const TextStyle(),
this.betweenDefaultItemPadding = 10,
this.pagePadding = EdgeInsets.zero,
this.bottomActionTextStyle,
});
/// AvatarStyle can be used to set some avatar styling parameters.
final TextStyle avatarTextStyle;
/// PagePadding can be set to determine the padding of the whole page
/// againt the profile page parent.
final EdgeInsetsGeometry pagePadding;
/// BetweenDefaultItemPadding sets the
final double betweenDefaultItemPadding;
/// Bottom action text style
final TextStyle? bottomActionTextStyle;
}