0

enter image description here

part 'data_model.g.dart'; target hasn't been generated

I have tried so many ways to fix it but it does not work anyone can give a answer to solve it.

I tried updating dependencies and so many command lines

'flutter packages pub run build_runner watch --use-polling-watcher --delete-conflicting-outputs'

If anyone could fix it.

1
  • check your student model file's name is data_model.dart Commented Sep 20, 2023 at 10:29

1 Answer 1

1

Don't forget to add hive_generator at the dev_dependencies. Here's the link; https://pub.dev/packages/hive_generator

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.