fix: 二级评论点击报错、一些样式修改

This commit is contained in:
guozhigq
2023-07-27 21:31:28 +08:00
parent ca12be5373
commit f6c8c4f6a8
7 changed files with 30 additions and 25 deletions

View File

@ -8,17 +8,19 @@ class CustomToast extends StatelessWidget {
Widget build(BuildContext context) {
return Container(
margin:
EdgeInsets.only(bottom: MediaQuery.of(context).padding.bottom + 20),
EdgeInsets.only(bottom: MediaQuery.of(context).padding.bottom + 30),
padding: const EdgeInsets.symmetric(horizontal: 17, vertical: 10),
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.primaryContainer,
borderRadius: BorderRadius.circular(20),
),
child: Text(msg,
style: Theme.of(context)
.textTheme
.labelMedium!
.copyWith(color: Theme.of(context).colorScheme.primary)),
child: Text(
msg,
style: TextStyle(
fontSize: 13,
color: Theme.of(context).colorScheme.primary,
),
),
);
}
}

View File

@ -58,7 +58,8 @@ class NetworkImgLayer extends StatelessWidget {
}
Widget placeholder(context) {
return SizedBox(
return Container(
color: Theme.of(context).colorScheme.onInverseSurface.withOpacity(0.6),
width: width ?? double.infinity,
height: height ?? double.infinity,
child: Center(