feat:更新菜谱显示模块
This commit is contained in:
@@ -83,7 +83,7 @@ Widget circleIconButton({
|
||||
required IconData icon,
|
||||
required VoidCallback onPressed,
|
||||
required BuildContext context,
|
||||
bool? isSmall
|
||||
bool? isSmall,
|
||||
}) {
|
||||
final double size = isSmall == true ? 24 : 36;
|
||||
|
||||
@@ -101,6 +101,19 @@ Widget circleIconButton({
|
||||
);
|
||||
}
|
||||
|
||||
Widget buildTag(BuildContext context, String title) {
|
||||
final colors = Theme.of(context).colorScheme;
|
||||
|
||||
return Container(
|
||||
padding: EdgeInsets.symmetric(horizontal: 10, vertical: 4),
|
||||
decoration: BoxDecoration(
|
||||
color: Color.lerp(colors.primary, Colors.white, 0.8),
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
),
|
||||
child: Text(title, style: TextStyle(color: colors.primary)),
|
||||
);
|
||||
}
|
||||
|
||||
/// 确认按钮样式
|
||||
ButtonStyle primaryButtonStyle() {
|
||||
return ButtonStyle(
|
||||
|
||||
Reference in New Issue
Block a user