You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aku_new_community/lib/widget/buttons/column_action_button.dart

33 lines
853 B

import 'package:flutter/material.dart';
4 years ago
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/utils/headers.dart';
3 years ago
///上图片 下文字 的button
class ColumnActionButton extends StatelessWidget {
3 years ago
final VoidCallback? onPressed;
final String? title;
final String? path;
const ColumnActionButton({Key? key, this.onPressed, this.title, this.path})
: super(key: key);
@override
Widget build(BuildContext context) {
return MaterialButton(
minWidth: 72.w,
padding: EdgeInsets.zero,
onPressed: onPressed,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.max,
children: [
3 years ago
Image.asset(path!, height: 48.w, width: 48.w),
4.hb,
3 years ago
title!.text.size(20.sp).black.make(),
],
),
);
}
}