londonappbrewery / quizzler-flutter

Learn to Code While Building Apps - The Complete Flutter Development Bootcamp
https://www.appbrewery.co
196 stars 869 forks source link

migrating your code #29

Open A-bahattab opened 2 years ago

A-bahattab commented 2 years ago

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 commented 2 years ago

The code is still not updated!

fancellu commented 2 years ago

Try

import 'package:meta/meta.dart';

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

  const Question(this.questionText, this.questionAnswer);
}
joejills commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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