Fix riverpod code generation
This commit is contained in:
@@ -15,14 +15,14 @@ class ProfileDetailNotifier extends _$ProfileDetailNotifier with AppLogger {
|
||||
Future<ProfileDetailState> build(
|
||||
String id, {
|
||||
String? url,
|
||||
String? name,
|
||||
String? profileName,
|
||||
}) async {
|
||||
if (id == 'new') {
|
||||
return ProfileDetailState(
|
||||
profile: Profile(
|
||||
id: const Uuid().v4(),
|
||||
active: true,
|
||||
name: name ?? "",
|
||||
name: profileName ?? "",
|
||||
url: url ?? "",
|
||||
lastUpdate: DateTime.now(),
|
||||
),
|
||||
|
||||
@@ -25,7 +25,8 @@ class ProfileDetailPage extends HookConsumerWidget with PresLogger {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final provider = profileDetailNotifierProvider(id, url: url, name: name);
|
||||
final provider =
|
||||
profileDetailNotifierProvider(id, url: url, profileName: name);
|
||||
final t = ref.watch(translationsProvider);
|
||||
final asyncState = ref.watch(provider);
|
||||
final notifier = ref.watch(provider.notifier);
|
||||
|
||||
Reference in New Issue
Block a user