Alert with input text in Flutter and in B4X ;-)

Cadenzo

Active Member
Licensed User
Longtime User
My friends are using Flutter and I wanted to see some small tutorials.
First Example: Watch here, how to handle a text-input in Flutter...


...or write just this lines in B4X (use lib "Dialogs"):
Sub btnAlert_Click
    Dim dlg As InputDialog
    dlg.InputType = dlg.INPUT_TYPE_TEXT 'not necessary, it is default
   
    Dim sf As Object = dlg.ShowAsync("", "Your Name?", "Submit", "", "", Null, False)
    Wait For (sf) Dialog_Result(Result As Int)
    If Result = DialogResponse.POSITIVE Then
        ToastMessageShow("Hello " & dlg.Input, False)
    End If
End Sub

Do you have more examples?
What are you doing with the time, you safe by using B4X? ?
 

AnandGupta

Expert
Licensed User
Longtime User
B4X is great tool, but comparison is not justified as we are using Erel codes/libraries, which Flutter lack.

Regards,

Anand
 
Top