chore: Replace TextButton with UiButton.secondary in settings actions
Updated the log out and cancel actions in SettingsActions to use UiButton.secondary instead of TextButton for consistency with the UI component library.
This commit is contained in:
@@ -69,26 +69,20 @@ class SettingsActions extends StatelessWidget {
|
||||
),
|
||||
actions: <Widget>[
|
||||
// Log out button
|
||||
TextButton(
|
||||
UiButton.secondary(
|
||||
text: t.client_settings.profile.log_out,
|
||||
onPressed: () {
|
||||
Modular.to.pop();
|
||||
BlocProvider.of<ClientSettingsBloc>(
|
||||
context,
|
||||
).add(const ClientSettingsSignOutRequested());
|
||||
},
|
||||
child: Text(
|
||||
t.client_settings.profile.log_out,
|
||||
style: UiTypography.buttonM.textSecondary,
|
||||
),
|
||||
),
|
||||
|
||||
// Cancel button
|
||||
TextButton(
|
||||
UiButton.secondary(
|
||||
text: t.common.cancel,
|
||||
onPressed: () => Modular.to.pop(),
|
||||
child: Text(
|
||||
t.common.cancel,
|
||||
style: UiTypography.buttonM.textPrimary,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user