|
|
|
|
@ -109,18 +109,20 @@ class AssetPicker extends StatelessWidget {
|
|
|
|
|
height: 50,
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
// color: Colors.white,
|
|
|
|
|
// // color: Colors.white,
|
|
|
|
|
// borderRadius: BorderRadius.circular(10),
|
|
|
|
|
// border: Border.all(color: borderColor ?? AppColor.border2Color(context), width: 1),
|
|
|
|
|
color: buttonColor ?? backgroundColor ?? AppColor.primary10,
|
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
|
border: Border.all(color: borderColor ?? AppColor.border2Color(context), width: 1),
|
|
|
|
|
// boxShadow: [BoxShadow(color: Colors.black.withOpacity(0.03), blurRadius: 14)],
|
|
|
|
|
border: showBorder ? Border.all(color: borderColor ?? AppColor.border2Color(context), width: 1) : null,
|
|
|
|
|
),
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 16.toScreenWidth, vertical: 8.toScreenHeight),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
"scan_asset".toSvgAsset(height: 22, fit: BoxFit.fitHeight, color: AppColor.icon2Color(context)),
|
|
|
|
|
"scan_asset".toSvgAsset(height: 22, fit: BoxFit.fitHeight, color: AppColor.white10),
|
|
|
|
|
8.width,
|
|
|
|
|
"Re-Scan or Pick Asset".bodyText(context).custom(color: AppColor.icon2Color(context)),
|
|
|
|
|
"Re-Scan or Pick Asset".bodyText(context).custom(color: AppColor.white10),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
).onPress(() async {
|
|
|
|
|
|