2022-08-26 16:28:40 +02:00
|
|
|
import 'package:flutter/material.dart';
|
2022-08-26 15:31:42 +02:00
|
|
|
import 'package:profile/src/widgets/avatar/avatar_style.dart';
|
|
|
|
|
2022-09-20 14:11:38 +02:00
|
|
|
/// 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.
|
2022-08-26 15:31:42 +02:00
|
|
|
class ProfileStyle {
|
|
|
|
const ProfileStyle({
|
|
|
|
this.avatarStyle = const AvatarStyle(),
|
2022-08-26 16:28:40 +02:00
|
|
|
this.betweenDefaultItemPadding = 10,
|
|
|
|
this.pagePadding = EdgeInsets.zero,
|
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-08-26 15:31:42 +02:00
|
|
|
final AvatarStyle avatarStyle;
|
2022-09-20 14:11:38 +02:00
|
|
|
|
|
|
|
/// PagePadding can be set to determine the padding of the whole page 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;
|
2022-08-26 15:31:42 +02:00
|
|
|
}
|