parent
932648a707
commit
b025d6dfa0
After Width: | Height: | Size: 1.1 KiB |
@ -0,0 +1,29 @@
|
|||||||
|
import 'package:akuCommunity/utils/headers.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:velocity_x/velocity_x.dart';
|
||||||
|
|
||||||
|
class ColumnActionButton extends StatelessWidget {
|
||||||
|
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: [
|
||||||
|
Image.asset(path, height: 48.w, width: 48.w),
|
||||||
|
4.hb,
|
||||||
|
title.text.size(20.sp).black.make(),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue