mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
* feat: add support for Trezor device settings configuration and `AwaitingSettings` state in pairing flow * fix ugly widgets * trezor options ui * feat: add support for Trezor on device passphrases * chore: bump trezor_flutter deps * fix: remove unused subtitle property in proceed_on_device_sheet [skip ci] * chore: update trezor_flutter dependency to latest commit [skip ci] * fix: set restore height and store wallet during initialization steps --------- Co-authored-by: Robert Malikowski <malikowskirobert@gmail.com>
55 lines
1.4 KiB
Dart
55 lines
1.4 KiB
Dart
import "package:cake_wallet/src/widgets/cake_image_widget.dart";
|
|
import "package:flutter/material.dart";
|
|
|
|
class BorderedSvgIcon extends StatelessWidget {
|
|
const BorderedSvgIcon({
|
|
required this.iconPath,
|
|
required this.iconSize,
|
|
Color? iconColor,
|
|
Color? borderColor,
|
|
this.borderSize = 6,
|
|
super.key,
|
|
}) : _iconColor = iconColor,
|
|
_borderColor = borderColor;
|
|
|
|
final String iconPath;
|
|
final Color? _iconColor;
|
|
final double iconSize;
|
|
final Color? _borderColor;
|
|
final double borderSize;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final iconColor = _iconColor ?? Theme.of(context).colorScheme.onSurface;
|
|
final borderColor = _borderColor ?? Theme.of(context).colorScheme.surface;
|
|
|
|
return SizedBox(
|
|
width: iconSize + borderSize * 2,
|
|
height: iconSize + borderSize * 2,
|
|
child: Stack(
|
|
alignment: Alignment.center,
|
|
children: [
|
|
CakeImageWidget(
|
|
imageUrl: iconPath,
|
|
width: iconSize + borderSize * 2,
|
|
height: iconSize + borderSize * 2,
|
|
colorFilter: ColorFilter.mode(
|
|
borderColor,
|
|
BlendMode.srcIn,
|
|
),
|
|
),
|
|
CakeImageWidget(
|
|
imageUrl: iconPath,
|
|
width: iconSize,
|
|
height: iconSize,
|
|
colorFilter: ColorFilter.mode(
|
|
iconColor,
|
|
BlendMode.srcIn,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|