fix: 适配 Flutter 3.47 的 IconButton API;版本号升级 V1.0.4
- _iconBtn 的 tapTargetSize 改由 IconButton.styleFrom 提供(新 SDK 已移除该形参) - 版本号 1.0.2+4 → 1.0.4+5(pubspec / 关于页 / README / BUILD-NOTES) - 安卓发布产物命名去 tablet:sequence_diagram_android_v1.0.4_release.apk
This commit is contained in:
@@ -809,7 +809,8 @@ class _AppShellState extends State<AppShell> {
|
||||
splashRadius: 16 * s,
|
||||
padding: EdgeInsets.zero,
|
||||
constraints: BoxConstraints(minWidth: 34 * s, minHeight: 34 * s),
|
||||
tapTargetSize: s < 1 ? MaterialTapTargetSize.shrinkWrap : null,
|
||||
// 新版 Flutter 的 IconButton 已移除 tapTargetSize 形参,改由 style 提供。
|
||||
style: IconButton.styleFrom(tapTargetSize: s < 1 ? MaterialTapTargetSize.shrinkWrap : null),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user