mirror of
https://github.com/block/buzz.git
synced 2026-11-24 10:12:19 +00:00
fix(mobile): match the Diagnostics card to neighbouring Settings cards
Add row subtitles and use the icon-free divider indent (Grid.xs) like the other Settings cards. Co-authored-by: studio <dc2fc481343672df31a689840c09299972e704dac592e0da6f18486646a7ee3e@localhost> Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
@@ -9,11 +9,13 @@ class _DiagnosticsSection extends ConsumerWidget {
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final reporter = ref.watch(diagnosticReporterProvider);
|
||||
return AppListCard(
|
||||
dividerIndent: Grid.xs,
|
||||
verticalPadding: Grid.twelve,
|
||||
children: [
|
||||
AppListRow(
|
||||
key: const Key('settings-send-test-report'),
|
||||
title: 'Send test report',
|
||||
subtitle: 'Send a test error to the reporting destination',
|
||||
onTap: () {
|
||||
reporter.sendTestReport();
|
||||
ScaffoldMessenger.of(context).showFeedbackSnackBar(
|
||||
@@ -25,6 +27,7 @@ class _DiagnosticsSection extends ConsumerWidget {
|
||||
AppListRow(
|
||||
key: const Key('settings-test-crash'),
|
||||
title: 'Test crash',
|
||||
subtitle: 'Crash Buzz in native code to check crash reports',
|
||||
titleColor: context.colors.error,
|
||||
onTap: () async {
|
||||
final confirmed = await showDestructiveConfirmation(
|
||||
|
||||
Reference in New Issue
Block a user