I would like flet to open a configured hyperlink when a button is pressed, here is the code:
`from flet import Web page
def nulls_start(text_values, switch_values):
attempt:
url = (
f”nullsbrawl://createAndJoinRoom?roomname=params:”
f”{int(text_values[0]) – 11},{int(text_values[1]) – 11},{int(text_values[2]) – 11},{int(text_values[3]) – 11},”
f”{int(text_values[4]) – 100},{int(text_values[5]) – 100},{int(text_values[6])},{int(text_values[7])},”
f”{int(text_values[8])},{int(text_values[9]) – 3},{int(text_values[10])},{int(text_values[11]) – 20},”
f”{int(text_values[12])},{1 if switch_values[0].worth else 0},{int(text_values[13])},{int(text_values[14]) – 3},”
f”{1 if switch_values[1].worth else 0},{1 if switch_values[2].worth else 0},{1 if switch_values[3].worth else 0},”
f”{int(text_values[15])},{int(text_values[16])},{1 if switch_values[4].worth else 0},{int(text_values[17])},”
f”{1 if switch_values[5].worth else -1},{int(text_values[18])},{1 if switch_values[6].worth else 0},”
f”{1 if switch_values[7].worth else 0}&pleasant=1″
)
web page.launch_url(url)
return True
besides:
return False`
This is the default hyperlink:
nullsbrawl://createAndJoinRoom?roomname=params:0,0…
However web page.launch_url(url) opens the hyperlink with out case sensitivity, that means the parameter createAndJoinRoom turns into createandjoinroom. Due to this, the appliance the place this hyperlink is meant to open doesn’t acknowledge the parameter createAndJoinRoom. How can I repair this and make the hyperlink open with case sensitivity? I additionally tried including the url parameter to FilledButton, however that did not assist both.
Simply to notice, the appliance primarily targets Android, however I may also make it work on iOS
I additionally tried webbrowser, it would not work