Skip to content

Commit

Permalink
Fixes for FOSS version
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Oct 25, 2023
1 parent c84f43e commit 2e3f344
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/ui/app/pinput.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class AppPinput extends StatelessWidget {

@override
Widget build(BuildContext context) {
final localization = AppLocalization.of(context);
final localization = AppLocalization.of(context)!;

return Pinput(
onCompleted: onCompleted,
Expand All @@ -18,7 +18,7 @@ class AppPinput extends StatelessWidget {
showCursor: true,
androidSmsAutofillMethod: AndroidSmsAutofillMethod.smsUserConsentApi,
validator: (value) =>
value!.isEmpty ? localization!.pleaseEnterACode : null,
value!.isEmpty ? localization.pleaseEnterACode : null,
);
}
}
6 changes: 3 additions & 3 deletions lib/ui/app/pinput.dart.foss
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import 'package:invoiceninja_flutter/ui/app/forms/decorated_form_field.dart';
import 'package:invoiceninja_flutter/utils/localization.dart';

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
Widget build(BuildContext context) {
final localization = AppLocalization.of(context);
final localization = AppLocalization.of(context)!;

return DecoratedFormField(
label: localization.code,
Expand Down
4 changes: 2 additions & 2 deletions lib/utils/oauth.dart.foss
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ class GoogleOAuth {
}
*/

static void signOut() async {
static Future<GoogleSignInAccount?> signOut() async {
//
}

static void disconnect() async {
static Future<GoogleSignInAccount?> disconnect() async {
//
}
}

0 comments on commit 2e3f344

Please sign in to comment.