我正在使用最新的库更新
\n\ndependencies:\n flutter_svg: ^0.17.4\nRun Code Online (Sandbox Code Playgroud)\n\n\n\nContainer( height: 150, //color: Colors.blue, width: screenWidth * 0.80, child: SvgPicture.asset( "assets/logo-violeta-NVIAME-login.svg", color: Color(0xFF6327f8), ), ),\n------------------------------------------------------------------------\n\nRun Code Online (Sandbox Code Playgroud)\n\n我的代码有效,但我进行了热重启..并且我得到以下异常
\n\nThe <style> element is not implemented in this library.\n\nStyle elements are not supported by this library and the requested SVG may not render as intended.\n\nIf possible, ensure the SVG uses inline styles and/or attributes (which are supported), or use a preprocessing utility such as svgcleaner to inline the styles for you.\n\n\nPicture key: AssetBundlePictureKey(bundle: PlatformAssetBundle#60537(), name: …Run Code Online (Sandbox Code Playgroud) void _showDialog(BuildContext context) {
showDialog(
context: context,
builder: (BuildContext context) {
return AlertDialog(
title: new Text("Alert Dialog title"),
content: new Text("Alert Dialog body"),
actions: <Widget>[
// usually buttons at the bottom of the dialog
new FlatButton(
child: new Text("Close"),
onPressed: () {
Navigator.of(context).pop();
},
),
],
);
},
);
}
Run Code Online (Sandbox Code Playgroud)
我需要创建这个事件,在显示对话窗口的那一刻,屏幕的其他部分改变颜色,我在咨询其他来源时遇到了麻烦,事实是我无法与该事件重合。
目标是实现这样的目标: