Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrating your code #29

Open
A-bahattab opened this issue Oct 22, 2021 · 5 comments
Open

migrating your code #29

A-bahattab opened this issue Oct 22, 2021 · 5 comments

Comments

@A-bahattab
Copy link

will you please upgrade your code... and migrate to new flutter? I just reach section 10 and i was build my code as a new project for every single app that you give us. i just take the assets and images from your reposirty. and i got stucked at section 9 cause the nullable saftey until i search about it so when i change the Color to Color? and int to int? the function biuldKey run as good. so please update your codes for new students. thank you.

@pantchayan
Copy link

The code is still not updated!

@fancellu
Copy link

Try

import 'package:meta/meta.dart';

@immutable
class Question {
  final String questionText;
  final bool questionAnswer;

  const Question(this.questionText, this.questionAnswer);
}

@joejills
Copy link

joejills commented Jan 8, 2023

Hi,

Does anyone know if there is a guide anywhere on how to migrate the code?

I am really struggling to get this app to work on the latest Android Studio.

Thanks a lot

@tlaw22
Copy link

tlaw22 commented May 2, 2023

How to create class constructors in Flutter 3.7


FvJ63aMWIAULj0P

class Question {
final String questionText;
final bool questionAnswer;

Question({
required this.questionText,
required this.questionAnswer,
});
}

@tlaw22
Copy link

tlaw22 commented May 9, 2023

To pass null fnctions
final void Function() onTap;
and the
@immutable works also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants