refactor: Remove 'Edit Profile' and 'Hubs' buttons from settings actions and migrate client hubs page to use UiAppBar.
This commit is contained in:
@@ -44,10 +44,7 @@ class ClientSettingsPage extends StatelessWidget {
|
||||
child: const Scaffold(
|
||||
backgroundColor: UiColors.bgMenu,
|
||||
body: CustomScrollView(
|
||||
slivers: <Widget>[
|
||||
SettingsProfileHeader(),
|
||||
SettingsActions(),
|
||||
],
|
||||
slivers: <Widget>[SettingsProfileHeader(), SettingsActions()],
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -24,36 +24,6 @@ class SettingsActions extends StatelessWidget {
|
||||
delegate: SliverChildListDelegate(<Widget>[
|
||||
const SizedBox(height: UiConstants.space5),
|
||||
|
||||
// Edit Profile button (Yellow)
|
||||
UiButton.primary(
|
||||
text: labels.edit_profile,
|
||||
fullWidth: true,
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: UiColors.accent,
|
||||
foregroundColor: UiColors.accentForeground,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(UiConstants.radiusBase * 2),
|
||||
),
|
||||
),
|
||||
onPressed: () => Modular.to.toClientEditProfile(),
|
||||
),
|
||||
const SizedBox(height: UiConstants.space4),
|
||||
|
||||
// Hubs button (Yellow)
|
||||
UiButton.primary(
|
||||
text: labels.hubs,
|
||||
fullWidth: true,
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: UiColors.accent,
|
||||
foregroundColor: UiColors.accentForeground,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(UiConstants.radiusBase * 2),
|
||||
),
|
||||
),
|
||||
onPressed: () => Modular.to.toClientHubs(),
|
||||
),
|
||||
const SizedBox(height: UiConstants.space5),
|
||||
|
||||
// Quick Links card
|
||||
_QuickLinksCard(labels: labels),
|
||||
const SizedBox(height: UiConstants.space5),
|
||||
@@ -67,7 +37,9 @@ class SettingsActions extends StatelessWidget {
|
||||
style: OutlinedButton.styleFrom(
|
||||
side: const BorderSide(color: UiColors.black),
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(UiConstants.radiusBase * 2),
|
||||
borderRadius: BorderRadius.circular(
|
||||
UiConstants.radiusBase * 2,
|
||||
),
|
||||
),
|
||||
),
|
||||
onPressed: state is ClientSettingsLoading
|
||||
|
||||
Reference in New Issue
Block a user