Fixes for FOSS version
This commit is contained in:
parent
c84f43e4cc
commit
2e3f3444a7
|
|
@ -9,7 +9,7 @@ class AppPinput extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final localization = AppLocalization.of(context);
|
final localization = AppLocalization.of(context)!;
|
||||||
|
|
||||||
return Pinput(
|
return Pinput(
|
||||||
onCompleted: onCompleted,
|
onCompleted: onCompleted,
|
||||||
|
|
@ -18,7 +18,7 @@ class AppPinput extends StatelessWidget {
|
||||||
showCursor: true,
|
showCursor: true,
|
||||||
androidSmsAutofillMethod: AndroidSmsAutofillMethod.smsUserConsentApi,
|
androidSmsAutofillMethod: AndroidSmsAutofillMethod.smsUserConsentApi,
|
||||||
validator: (value) =>
|
validator: (value) =>
|
||||||
value!.isEmpty ? localization!.pleaseEnterACode : null,
|
value!.isEmpty ? localization.pleaseEnterACode : null,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,13 @@ import 'package:invoiceninja_flutter/ui/app/forms/decorated_form_field.dart';
|
||||||
import 'package:invoiceninja_flutter/utils/localization.dart';
|
import 'package:invoiceninja_flutter/utils/localization.dart';
|
||||||
|
|
||||||
class AppPinput extends StatelessWidget {
|
class AppPinput extends StatelessWidget {
|
||||||
const AppPinput({Key key, this.onCompleted}) : super(key: key);
|
const AppPinput({Key? key, this.onCompleted}) : super(key: key);
|
||||||
|
|
||||||
final ValueChanged<String> onCompleted;
|
final ValueChanged<String>? onCompleted;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final localization = AppLocalization.of(context);
|
final localization = AppLocalization.of(context)!;
|
||||||
|
|
||||||
return DecoratedFormField(
|
return DecoratedFormField(
|
||||||
label: localization.code,
|
label: localization.code,
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,11 @@ class GoogleOAuth {
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static void signOut() async {
|
static Future<GoogleSignInAccount?> signOut() async {
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
static void disconnect() async {
|
static Future<GoogleSignInAccount?> disconnect() async {
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue