@@ -41,7 +41,6 @@ class SettingsProfileViewWeb extends StatelessWidget {
4141 Widget build (BuildContext context) {
4242 final l10n = L10n .of (context)! ;
4343 final theme = Theme .of (context);
44- final colorScheme = theme.colorScheme;
4544 final textTheme = theme.textTheme;
4645
4746 return Padding (
@@ -74,39 +73,8 @@ class SettingsProfileViewWeb extends StatelessWidget {
7473 ),
7574 ),
7675 ),
77- Container (
78- width: SettingsProfileViewWebStyle .bodyWidth,
79- padding: SettingsProfileViewWebStyle .paddingWidgetBasicInfo,
80- clipBehavior: .antiAlias,
81- decoration: ShapeDecoration (
82- color: Colors .white,
83- shape: RoundedRectangleBorder (
84- borderRadius: .circular (
85- SettingsProfileViewWebStyle .radiusCircular,
86- ),
87- ),
88- ),
89- child: Column (
90- mainAxisSize: .min,
91- crossAxisAlignment: .start,
92- children: [
93- Padding (
94- padding:
95- SettingsProfileViewWebStyle .paddingBasicInfoTitle,
96- child: Text (
97- l10n.workIdentitiesInfo,
98- style: textTheme.labelLarge? .copyWith (
99- color: colorScheme.onSurface,
100- ),
101- ),
102- ),
103- Padding (
104- padding: SettingsProfileViewWebStyle
105- .paddingWorkIdentitiesInfoWidget,
106- child: workIdentitiesInfoWidget,
107- ),
108- ],
109- ),
76+ PersonalInfosColumn (
77+ workIdentitiesInfoWidget: workIdentitiesInfoWidget,
11078 ),
11179 ],
11280 ),
@@ -116,6 +84,53 @@ class SettingsProfileViewWeb extends StatelessWidget {
11684 }
11785}
11886
87+ class PersonalInfosColumn extends StatelessWidget {
88+ const PersonalInfosColumn ({
89+ super .key,
90+ required this .workIdentitiesInfoWidget,
91+ });
92+
93+ final Widget workIdentitiesInfoWidget;
94+
95+ @override
96+ Widget build (BuildContext context) {
97+ final l10n = L10n .of (context)! ;
98+ final theme = Theme .of (context);
99+
100+ return Container (
101+ width: SettingsProfileViewWebStyle .bodyWidth,
102+ padding: SettingsProfileViewWebStyle .paddingWidgetBasicInfo,
103+ clipBehavior: .antiAlias,
104+ decoration: ShapeDecoration (
105+ color: Colors .white,
106+ shape: RoundedRectangleBorder (
107+ borderRadius: .circular (SettingsProfileViewWebStyle .radiusCircular),
108+ ),
109+ ),
110+ child: Column (
111+ mainAxisSize: .min,
112+ crossAxisAlignment: .start,
113+ children: [
114+ Padding (
115+ padding: SettingsProfileViewWebStyle .paddingBasicInfoTitle,
116+ child: Text (
117+ l10n.workIdentitiesInfo,
118+ style: theme.textTheme.labelLarge? .copyWith (
119+ color: theme.colorScheme.onSurface,
120+ ),
121+ ),
122+ ),
123+ Padding (
124+ padding:
125+ SettingsProfileViewWebStyle .paddingWorkIdentitiesInfoWidget,
126+ child: workIdentitiesInfoWidget,
127+ ),
128+ ],
129+ ),
130+ );
131+ }
132+ }
133+
119134class AvatarAndNameRow extends StatelessWidget {
120135 const AvatarAndNameRow ({
121136 super .key,
0 commit comments