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.

96 lines
2.7 KiB

// Flutter imports:
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
// Package imports:
import 'package:flutter_icons/flutter_icons.dart';
// Project imports:
import 'package:akuCommunity/base/base_style.dart';
import 'package:akuCommunity/utils/headers.dart';
class RefundTileCard extends StatefulWidget {
final List<Map<String, dynamic>> listTile;
RefundTileCard({Key key, this.listTile}) : super(key: key);
@override
_RefundTileCardState createState() => _RefundTileCardState();
}
class _RefundTileCardState extends State<RefundTileCard> {
Container _refundTile(String title, subtitle) {
return Container(
width: double.infinity,
4 years ago
padding: EdgeInsets.only(bottom: 26.w),
decoration: BoxDecoration(
border: Border(
bottom: BorderSide(color: BaseStyle.coloreeeeee, width: 0.5)),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
title,
style: TextStyle(
fontSize: BaseStyle.fontSize34,
color: ktextPrimary,
),
),
4 years ago
SizedBox(height: 24.w),
Text(
subtitle,
style: TextStyle(
fontSize: BaseStyle.fontSize28,
color: BaseStyle.color999999,
),
),
],
),
);
}
@override
Widget build(BuildContext context) {
return Container(
width: double.infinity,
child: Column(
children: widget.listTile
.map(
(item) => InkWell(
onTap: item['fun'],
child: Container(
width: double.infinity,
padding: EdgeInsets.only(
4 years ago
top: 22.w,
left: 32.w,
right: 32.w,
),
color: Colors.white,
child: Stack(
children: [
_refundTile(
item['title'],
item['subtitle'],
),
item['isRight']
? Positioned(
4 years ago
top: 45.w,
right: 0,
child: Icon(
AntDesign.right,
4 years ago
size: 40.sp,
color: BaseStyle.colord8d8d8,
),
)
: SizedBox(),
],
),
),
),
)
.toList(),
),
);
}
}