Address tester feedback: snackbar, filter dialog, text scaling
- Rule-deleted snackbar now auto-dismisses (persist: false) and snackbar actions use a high-contrast colour in both themes - Add-rule dialog keeps the floating label visible with the keyboard up - Dismiss focus/keyboard before swapping tab routes - Repeater status: full-width tiles on phones, no shrink-to-fit values, multi-part stats on separate lines, drop "0 days" from durations - App bar titles respect the system font size instead of scaling down; contacts controls grow with text scale; larger nav labels - Fix duplicated flood value in Japanese duplicates string
This commit is contained in:
1 parent
394df3109b
commit
03495effe6
49 files changed
+304
-39
No files matched your search
@@ -795,7 +795,7 @@ class _ContactsScreenState extends State<ContactsScreen>
|
||||
),
|
||||
],
|
||||
child: SizedBox(
|
||||
height: 48,
|
||||
height: _controlHeight(context),
|
||||
child: DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(color: Theme.of(context).colorScheme.outline),
|
||||
@@ -821,6 +821,13 @@ class _ContactsScreenState extends State<ContactsScreen>
|
||||
);
|
||||
}
|
||||
|
||||
/// Height of the group/search controls; grows with the system font size so
|
||||
/// larger text is not clipped.
|
||||
double _controlHeight(BuildContext context) {
|
||||
final textHeight = MediaQuery.textScalerOf(context).scale(16) * 1.5;
|
||||
return (textHeight + 20).clamp(48.0, 120.0);
|
||||
}
|
||||
|
||||
Widget _buildContactsBody(BuildContext context, MeshCoreConnector connector) {
|
||||
final viewState = context.watch<UiViewStateService>();
|
||||
final contacts = connector.contacts;
|
||||
@@ -958,7 +965,7 @@ class _ContactsScreenState extends State<ContactsScreen>
|
||||
width: viewState.contactsSearchExpanded
|
||||
? searchExpandedWidth
|
||||
: searchCollapsedWidth,
|
||||
height: 48,
|
||||
height: _controlHeight(context),
|
||||
child: DecoratedBox(
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(
|
||||
@@ -1266,6 +1273,7 @@ class _ContactsScreenState extends State<ContactsScreen>
|
||||
}
|
||||
|
||||
void _handleQuickSwitch(int index, BuildContext context) {
|
||||
FocusManager.instance.primaryFocus?.unfocus();
|
||||
if (index == 0) return;
|
||||
switch (index) {
|
||||
case 1:
|
||||
|
||||
Reference in new issue
Block a user