我正在尝试在动画容器中渲染圆形borderRadius。它在容器的阴影上渲染,但不在实际容器上渲染。有什么建议吗?
这是我的代码:
Main.dart
structure(list(id = c(3831001, 3831001, 3831001, 3831001, 3831001,
3831001, 3831001, 3831001, 3831002, 3831002, 3831002, 3831002,
3831002, 3831002, 3831002, 3831002, 3831003, 3831003, 3831003,
3831003, 3831003, 3831003, 3831003, 3831003, 3831004, 3831004,
3831004, 3831004, 3831004, 3831004, 3831005, 3831005, 3831005,
3831005, 3831005, 3831005, 3831005, 3831006, 3831006, 3831006,
3831006, 3831006, 3831006, 3831007, 3831007, 3831007, 3831007,
3831007, 3831007, 3831007, 3831007), lep = c(1, 1, 1, NA, NA,
0, NA, 0, 1, 1, 0, 1, 0, 0, NA, 1, 1, 0, 0, 0, NA, 1, 0, NA,
1, 0, NA, 1, 0, NA, 1, NA, NA, 0, NA, NA, 1, 1, 0, NA, 0, 0,
0, 1, 0, 0, 0, 0, NA, NA, 1)), row.names = c(NA, -51L), groups = structure(list(
id = c(3831001, 3831002, 3831003, 3831004, 3831005, 3831006,
3831007), .rows = structure(list(1:8, 9:16, 17:24, 25:30,
31:37, 38:43, 44:51), ptype = integer(0), class = c("vctrs_list_of",
"vctrs_vctr", "list"))), row.names = c(NA, 7L), class = c("tbl_df",
"tbl", "data.frame"), .drop = TRUE), class = c("grouped_df",
"tbl_df", "tbl", "data.frame"))->df
#.The expected result is as follows,
id lep sign
3831001 1 0
3831001 1 0
3831001 1 0
3831001 NA 0
3831001 NA 0
3831001 0 0
3831001 NA 0
3831001 0 0
3831002 1 1
3831002 0 1
3831002 0 1
3831002 1 1
3831002 0 1
3831002 0 1
3831002 NA 1
3831002 1 1
...............
3831006 1 0
3831006 0 0
3831006 NA 0
3831006 0 0
3831006 0 0
3831006 0 0
3831007 1 1
3831007 0 1
3831007 0 1
3831007 0 1
3831007 0 1
3831007 NA 1
3831007 NA 1
3831007 1 1
HomeScreen.Dart
我已注释掉未渲染的代码行。
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
body: Stack(
children: [Menu(), HomeScreen()],
),
),
);
}
}
[{ 1
容器位于Menu Dash板内部。是右侧的Mini HomeScreen,borderRadius是正方形而不是圆形。