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

Commit

Permalink
feat: Small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Myzel394 committed May 21, 2023
1 parent 709b751 commit 121e8af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/widgets/BottomSheetFilterBuilder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class _BottomSheetFilterBuilderState<T>
onChanged: (value) {
updateElements();
},
spellCheckConfiguration: const SpellCheckConfiguration.disabled(),
decoration: InputDecoration(
hintText: l10n.searchLabel,
suffixIcon: IconButton(
Expand Down
6 changes: 3 additions & 3 deletions lib/widgets/RelaySelectSheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class _RelaySelectSheetState extends State<RelaySelectSheet> {

final newValue = addProtocol(value);

if (Uri.tryParse(newValue) == null) {
if (Uri.parse(newValue) == null) {
setState(() {
_newValue = "";
});
Expand Down Expand Up @@ -215,7 +215,7 @@ class _RelaySelectSheetState extends State<RelaySelectSheet> {
return PlatformWidget(
material: (context, _) => CheckboxListTile(
title: Text(
relay.substring(6),
relay.length >= 6 ? relay.substring(6) : relay,
),
value: widget.controller.relays.contains(relay),
onChanged: (newValue) {
Expand All @@ -232,7 +232,7 @@ class _RelaySelectSheetState extends State<RelaySelectSheet> {
),
cupertino: (context, _) => CupertinoListTile(
title: Text(
relay.substring(6),
relay.length >= 6 ? relay.substring(6) : relay,
),
trailing: CupertinoSwitch(
value: widget.controller.relays.contains(relay),
Expand Down

0 comments on commit 121e8af

Please sign in to comment.