mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-23 10:45:27 +01:00
merge
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'dart:ui';
|
||||
|
||||
import 'package:auto_size_text/auto_size_text.dart';
|
||||
import 'package:cake_wallet/src/widgets/cake_image_widget.dart';
|
||||
import 'package:cake_wallet/src/widgets/section_divider.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@@ -184,10 +185,7 @@ class BaseAlertDialog extends StatelessWidget {
|
||||
radius: 50,
|
||||
backgroundColor: Theme.of(context).colorScheme.surfaceContainerHighest,
|
||||
child: ClipOval(
|
||||
child: Image.network(
|
||||
imageUrl,
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
child: CakeImageWidget (imageUrl: imageUrl, width: 100, height: 100, fit: BoxFit.cover),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -163,7 +163,7 @@ class ConfirmSendingBottomSheet extends BaseBottomSheet {
|
||||
itemBuilder: (context, index) {
|
||||
final isBatchSending = outputs.length > 1;
|
||||
final item = outputs[index];
|
||||
final contactName = item.parsedAddress.name;
|
||||
final contactName = item.parsedAddress.profileName;
|
||||
final isCakePayName = contactName == 'Cake Pay';
|
||||
final batchContactTitle =
|
||||
'${index + 1}/${outputs.length} - ${contactName.isEmpty ? 'Address' : contactName}';
|
||||
|
||||
@@ -11,6 +11,7 @@ class ListItemCheckboxWidget extends StatefulWidget {
|
||||
required this.label,
|
||||
required this.value,
|
||||
required this.onChanged,
|
||||
this.subtitleColor,
|
||||
this.onTap,
|
||||
this.isFirstInSection = false,
|
||||
this.isLastInSection = false, this.subtitle, this.iconPath, this.showArrow = false,
|
||||
@@ -22,6 +23,7 @@ class ListItemCheckboxWidget extends StatefulWidget {
|
||||
final String? iconPath;
|
||||
final bool showArrow;
|
||||
final bool value;
|
||||
final Color? subtitleColor;
|
||||
final VoidCallback? onTap;
|
||||
final ValueChanged<bool> onChanged;
|
||||
final bool isFirstInSection;
|
||||
@@ -81,7 +83,7 @@ class _ListItemCheckboxWidgetState extends State<ListItemCheckboxWidget> {
|
||||
Text(
|
||||
widget.subtitle!,
|
||||
style: TextStyle(
|
||||
fontSize: 12, color: Theme.of(context).colorScheme.onSurfaceVariant),
|
||||
fontSize: 12, color: widget.subtitleColor ?? Theme.of(context).colorScheme.onSurfaceVariant),
|
||||
)
|
||||
],
|
||||
),
|
||||
|
||||
@@ -135,6 +135,7 @@ class NewListSections extends StatelessWidget {
|
||||
label: item.label,
|
||||
subtitle: item.subtitle,
|
||||
iconPath: item.iconPath,
|
||||
subtitleColor: item.subtitleColor,
|
||||
showArrow: item.showArrow,
|
||||
onTap: item.onTap,
|
||||
value: item.value,
|
||||
|
||||
Reference in New Issue
Block a user