majro update
This commit is contained in:
@@ -6,7 +6,9 @@ part 'controllers.g.dart';
|
||||
@Riverpod()
|
||||
class AuthController extends _$AuthController {
|
||||
@override
|
||||
FutureOr<void> build() {}
|
||||
Future<void> build() {
|
||||
return Future.value();
|
||||
}
|
||||
|
||||
Future<void> authWithPassword(String user, String password) async {
|
||||
state = const AsyncLoading();
|
||||
|
||||
@@ -6,20 +6,21 @@ part of 'controllers.dart';
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
String _$authControllerHash() => r'5b56651948683d669f29946fe02bdb004f436afb';
|
||||
String _$authControllerHash() => r'0085e324fbe093c1984eaa56dbfac33472138f9f';
|
||||
|
||||
/// See also [AuthController].
|
||||
@ProviderFor(AuthController)
|
||||
final authControllerProvider =
|
||||
AutoDisposeAsyncNotifierProvider<AuthController, void>.internal(
|
||||
AuthController.new,
|
||||
name: r'authControllerProvider',
|
||||
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$authControllerHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
AuthController.new,
|
||||
name: r'authControllerProvider',
|
||||
debugGetCreateSourceHash:
|
||||
const bool.fromEnvironment('dart.vm.product')
|
||||
? null
|
||||
: _$authControllerHash,
|
||||
dependencies: null,
|
||||
allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
typedef _$AuthController = AutoDisposeAsyncNotifier<void>;
|
||||
// ignore_for_file: type=lint
|
||||
|
||||
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_hooks/flutter_hooks.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:lensai/extensions/nullable.dart';
|
||||
import 'package:lensai/features/user/domain/providers.dart';
|
||||
import 'package:lensai/features/user/presentation/controllers/controllers.dart';
|
||||
|
||||
@@ -46,7 +47,7 @@ class UserAuthScreen extends HookConsumerWidget {
|
||||
icon: Icon(Icons.account_circle),
|
||||
),
|
||||
validator: (value) {
|
||||
if (value?.isEmpty ?? true) {
|
||||
if (value.isEmpty) {
|
||||
return 'Email must be provided';
|
||||
}
|
||||
|
||||
@@ -79,7 +80,7 @@ class UserAuthScreen extends HookConsumerWidget {
|
||||
),
|
||||
obscureText: obscure.value,
|
||||
validator: (value) {
|
||||
if (value?.isEmpty ?? true) {
|
||||
if (value.isEmpty) {
|
||||
return 'Password must be provided';
|
||||
}
|
||||
|
||||
@@ -105,7 +106,7 @@ class UserAuthScreen extends HookConsumerWidget {
|
||||
),
|
||||
obscureText: obscure.value,
|
||||
validator: (value) {
|
||||
if (value?.isEmpty ?? true) {
|
||||
if (value.isEmpty) {
|
||||
return 'Password must be provided';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user