21115f8e8f
Expose platform-aware shortcut help from Settings, keep narrow layouts scrollable, share Search tooltip labels, and document Terminal-to-chat composer focus. Integrate together with the separately reviewed Alt-slash handler.
20 lines
616 B
Dart
20 lines
616 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'keyboard_shortcuts_help.dart';
|
|
import 'settings_keys.dart';
|
|
import 'settings_row.dart';
|
|
|
|
class SettingsKeyboardShortcutsSection extends StatelessWidget {
|
|
const SettingsKeyboardShortcutsSection({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) => SettingsRow(
|
|
key: SettingsKeys.keyboardShortcuts,
|
|
leading: const Icon(Icons.keyboard_outlined),
|
|
title: const Text(keyboardShortcutsLabel),
|
|
subtitle: const Text('See the shortcuts available on this platform.'),
|
|
chevron: true,
|
|
onTap: () => showKeyboardShortcutsHelp(context),
|
|
);
|
|
}
|