having an issue passing data between pages in flutter | بلاگ

having an issue passing data between pages in flutter

تعرفه تبلیغات در سایت

آخرین مطالب

امکانات وب

Vote count: 0

So I've been doing a tutorial on passing data in flutter, and I am pretty much using the tutorials code this is the class that I want the parameter to be accessible on

class handler extends StatefulWidget {
     handler({this.value});
    final String value;
    _handler createState() => _handler();

}

So value should be an accessible parameter to use on another page of code but when I try to access it with this

var route = new MaterialPageRoute(
            builder: (BuildContext context) =>
            new handler(value:pat),
          );

The ide says that the parameter "value" is not defined

asked 1 min ago
JAY PATEL

...
نویسنده : استخدام کار بازدید : 5 تاريخ : يکشنبه 14 مرداد 1397 ساعت: 5:58