skip to Main Content

enter image description hereim not able to use this keyword

i was expecting to use this keywordim not able to use this keyword

4

Answers


  1. Its deprecated, replaced by ElevatedButton.
    New Buttons and Button Themes

    Login or Signup to reply.
  2. the RaisedButton is deprecated, it’s replaced by ElevatedButton:

    replace:

    RaisedButton(/*...*/),
    

    with:

    ElevatedButton(/*...*/),
    

    check all new migrations here:

    https://docs.flutter.dev/release/breaking-changes/buttons#context

    Login or Signup to reply.
  3. RaisedButton is deprecated. Replace it with ElevatedButton

    return MaterialApp(
          home: Scaffold(
              body: Column(
                children: <Widget>[
                  Text('question'),
                  ElevatedButton(
                    child: Text('answer1'),
                    onPressed: null,
                  ),
                ],
              ),
          ),
        );
    
    Login or Signup to reply.
  4. Raised button is deprecated use Elevated Button

    return MaterialApp(
          home: Scaffold(
              body: Column(children:[
                  Text('question'),
                  ElevatedButton(child: Text('answer1'),onPressed: null),
                ],),
          ),
        );
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search