Can someone HELP me?! I'm beginner and I don't know what's happening hahaha My syntax is an old syntax?

101 views
Skip to first unread message

Rafa Oliveira

unread,
Feb 10, 2022, 8:38:59 PM2/10/22
to Flutter Development (flutter-dev)

Screenshot 2022-02-10 222525.pngScreenshot 2022-02-10 223546.png

Ralph Bergmann

unread,
Feb 10, 2022, 8:44:14 PM2/10/22
to Rafa Oliveira, Flutter Development (flutter-dev)

Ralph Bergmann

unread,
Feb 10, 2022, 8:48:06 PM2/10/22
to Rafa Oliveira, Flutter Development (flutter-dev)

something went wrong with my attached image, 2nd try

res...@gmail.com

unread,
Feb 10, 2022, 9:27:45 PM2/10/22
to Flutter Development (flutter-dev)
required, because "title" is required in widget Text.

Gregory Sun

unread,
Feb 10, 2022, 10:33:06 PM2/10/22
to Ralph Bergmann, Rafa Oliveira, Flutter Development (flutter-dev)
const HomeView({Key? key, this.title}) : super(key: key);
final String title;
...
Referenced by https://api.flutter.dev/flutter/widgets/StatelessWidget-class.html

On Feb 10, 2022, at 8:47 PM, Ralph Bergmann <ra...@dasralph.de> wrote:

<SCR-20220211-3un.png>

Rafa Oliveira

unread,
Feb 11, 2022, 4:50:40 AM2/11/22
to Ralph Bergmann, Flutter Development (flutter-dev)
Thanks!!!! :)

probuse nimukama

unread,
Feb 11, 2022, 5:14:41 AM2/11/22
to Rafa Oliveira, Ralph Bergmann, Flutter Development (flutter-dev)
Hello Rafa
If you are using null safety, either add required keyword ie HomeView({required this.title})
Or give title a default value like HomeView({this.title='my title'})

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/CAFReO-0WsgBsLZX7TPvvrC8%3DhuUYD%3D4O6trwUdeHgZnnHS30Sw%40mail.gmail.com.

Hamad Almaazmi

unread,
Feb 11, 2022, 6:48:51 AM2/11/22
to Ralph Bergmann, Rafa Oliveira, Flutter Development (flutter-dev)
TRAP STUPID

في الجمعة، ١١ فبراير ٢٠٢٢ ٥:٤٤ ص Ralph Bergmann <ra...@dasralph.de> كتب:

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages