Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit 121e8af

Browse files
committed
feat: Small improvements
1 parent 709b751 commit 121e8af

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/widgets/BottomSheetFilterBuilder.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ class _BottomSheetFilterBuilderState<T>
8484
onChanged: (value) {
8585
updateElements();
8686
},
87+
spellCheckConfiguration: const SpellCheckConfiguration.disabled(),
8788
decoration: InputDecoration(
8889
hintText: l10n.searchLabel,
8990
suffixIcon: IconButton(

lib/widgets/RelaySelectSheet.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class _RelaySelectSheetState extends State<RelaySelectSheet> {
113113

114114
final newValue = addProtocol(value);
115115

116-
if (Uri.tryParse(newValue) == null) {
116+
if (Uri.parse(newValue) == null) {
117117
setState(() {
118118
_newValue = "";
119119
});
@@ -215,7 +215,7 @@ class _RelaySelectSheetState extends State<RelaySelectSheet> {
215215
return PlatformWidget(
216216
material: (context, _) => CheckboxListTile(
217217
title: Text(
218-
relay.substring(6),
218+
relay.length >= 6 ? relay.substring(6) : relay,
219219
),
220220
value: widget.controller.relays.contains(relay),
221221
onChanged: (newValue) {
@@ -232,7 +232,7 @@ class _RelaySelectSheetState extends State<RelaySelectSheet> {
232232
),
233233
cupertino: (context, _) => CupertinoListTile(
234234
title: Text(
235-
relay.substring(6),
235+
relay.length >= 6 ? relay.substring(6) : relay,
236236
),
237237
trailing: CupertinoSwitch(
238238
value: widget.controller.relays.contains(relay),

0 commit comments

Comments
 (0)