mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
feat: Properly recognize the current input method
This commit is contained in:
parent
561351dd09
commit
8b9bc04380
7 changed files with 154 additions and 36 deletions
|
|
@ -19,7 +19,6 @@ class MediaQueryScaler extends StatelessWidget {
|
|||
final screenSize = MediaQuery.sizeOf(context) * scale;
|
||||
|
||||
final scaledMedia = mediaQuery.copyWith(
|
||||
navigationMode: NavigationMode.directional,
|
||||
size: screenSize,
|
||||
padding: mediaQuery.padding * scale,
|
||||
viewInsets: mediaQuery.viewInsets * scale,
|
||||
|
|
|
|||
|
|
@ -10,7 +10,11 @@ class EnumBox<T> extends StatelessWidget {
|
|||
final String current;
|
||||
final List<ItemAction> Function(BuildContext context) itemBuilder;
|
||||
|
||||
const EnumBox({required this.current, required this.itemBuilder, super.key});
|
||||
const EnumBox({
|
||||
required this.current,
|
||||
required this.itemBuilder,
|
||||
super.key,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|||
|
||||
import 'package:fladder/models/item_base_model.dart';
|
||||
import 'package:fladder/theme.dart';
|
||||
import 'package:fladder/util/adaptive_layout/adaptive_layout.dart';
|
||||
import 'package:fladder/util/fladder_image.dart';
|
||||
|
||||
Future<void> showBottomSheetPill({
|
||||
|
|
@ -44,7 +45,9 @@ Future<void> showBottomSheetPill({
|
|||
height: 8,
|
||||
width: 35,
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).colorScheme.onSurface,
|
||||
color: AdaptiveLayout.inputDeviceOf(context) == InputDevice.touch
|
||||
? Theme.of(context).colorScheme.onSurface
|
||||
: Colors.transparent,
|
||||
borderRadius: FladderTheme.largeShape.borderRadius,
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue