在颤动中2凸起的按钮在将来将被弃用 'RaisedButton' is deprecated and shouldn't be used. Use ElevatedButton instead.但是MaterialApp中的ThemeData不会影响ElevatedButton 对此有什么解决方案吗?
我正在构建一个基于flutter alertDialog的通用颤动小部件,我想将其作为一个单独的小部件,可以在其他小部件中使用onPressed方法进行调用。当前,alertDialog以onPressed方法打开,该方法是ElevatedButton小部件中当前小部件的一部分。我想去掉这个ElevatedButton,因为打开alertDialog的按钮是其他小工具的一部分。( style: El