This repository was archived by the owner on Dec 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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),
You can’t perform that action at this time.
0 commit comments