Код кнопки:
Код: Выделить всё
TextButton(onPressed: (){
_submit(context);
},
child: Text("Sign In")
),
Код: Выделить всё
void _submit(BuildContext context){
FocusScope.of(context).unfocus();
if(!_formKey.currentState!.validate()){
//Invalid
return;
}
_formKey.currentState!.save();
context.read().signUp(email: _email, username: _username, password: _password);
}
Есть такое предупреждение:
Код: Выделить всё
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...
**Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.**
√ Built build\app\outputs\flutter-apk\app-debug.apk
Подробнее здесь: https://stackoverflow.com/questions/792 ... ing-button