skip to Main Content

How can I upgrade a "RaisedButton" to "ElevatedButton" in Flutter?

I got the following code and want to make it work: RaisedButton( child: Text(_authMode == AuthMode.Login ? 'LOGIN' : 'SIGN UP'), onPressed: _submit, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(30), ), padding: EdgeInsets.symmetric(horizontal: 30.0, vertical: 8.0), color: Theme.of(context).primaryColor, textColor: Theme.of(context).primaryTextTheme.button.color, ), I tried…

VIEW QUESTION
Back To Top
Search