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