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/common_upload_image.dart

44 lines
1.2 KiB

import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/base/base_style.dart';
class CommonUploadImage extends StatefulWidget {
final String imagePath, title;
CommonUploadImage({Key key, this.imagePath, this.title}) : super(key: key);
@override
_CommonUploadImageState createState() => _CommonUploadImageState();
}
class _CommonUploadImageState extends State<CommonUploadImage> {
@override
Widget build(BuildContext context) {
return Container(
child: InkWell(
onTap: () {},
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(6)),
child: Image.asset(
widget.imagePath,
width: 328.w,
height: 180.w,
),
),
SizedBox(height: 16.w),
Text(
widget.title,
style: TextStyle(
fontSize: BaseStyle.fontSize24, color: BaseStyle.color999999),
),
],
),
),
);
}
}