Skip to content

Commit 6596a01

Browse files
committed
chore: dart format
1 parent 219b42d commit 6596a01

2 files changed

Lines changed: 23 additions & 26 deletions

File tree

lib/pages/receive_view/receive_view.dart

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ class _ReceiveViewState extends ConsumerState<ReceiveView> {
163163

164164
if (slatepackString == null) return;
165165
if (mounted) {
166-
final wallet =
167-
ref.read(pWallets).getWallet(walletId) as EpiccashWallet;
166+
final wallet = ref.read(pWallets).getWallet(walletId) as EpiccashWallet;
168167

169168
Exception? ex;
170169
final result = await showLoading(
@@ -818,11 +817,8 @@ class _ReceiveViewState extends ConsumerState<ReceiveView> {
818817
editLabel: "label",
819818
overrideTitle: "Edit label",
820819
onValueChanged: (value) {
821-
final existingLabel =
822-
MainDB.instance.getAddressLabelSync(
823-
walletId,
824-
address,
825-
);
820+
final existingLabel = MainDB.instance
821+
.getAddressLabelSync(walletId, address);
826822
if (existingLabel != null) {
827823
MainDB.instance.putAddressLabel(
828824
existingLabel.copyWith(label: value),

lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/desktop_receive.dart

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ class _DesktopReceiveState extends ConsumerState<DesktopReceive> {
176176
}
177177

178178
Future<void> _onEpicReceiveSlatePressed() async {
179-
final wallet =
180-
ref.read(pWallets).getWallet(walletId) as EpiccashWallet;
179+
final wallet = ref.read(pWallets).getWallet(walletId) as EpiccashWallet;
181180

182181
Exception? ex;
183182
final result = await showLoading(
@@ -607,9 +606,11 @@ class _DesktopReceiveState extends ConsumerState<DesktopReceive> {
607606
),
608607
),
609608
),
610-
if (!((isMimblewimblecoin || isEpiccash) && ref.watch(pIsSlatepack(widget.walletId))))
609+
if (!((isMimblewimblecoin || isEpiccash) &&
610+
ref.watch(pIsSlatepack(widget.walletId))))
611611
const SizedBox(height: 20),
612-
if (!((isMimblewimblecoin || isEpiccash) && ref.watch(pIsSlatepack(widget.walletId))))
612+
if (!((isMimblewimblecoin || isEpiccash) &&
613+
ref.watch(pIsSlatepack(widget.walletId))))
613614
ConditionalParent(
614615
condition: showMultiType,
615616
builder: (child) => Column(
@@ -791,25 +792,21 @@ class _DesktopReceiveState extends ConsumerState<DesktopReceive> {
791792
Expanded(
792793
child: Text(
793794
labelValue.isNotEmpty ? labelValue : "No label",
794-
style: STextStyles.desktopTextExtraExtraSmall(
795-
context,
796-
).copyWith(
797-
color: Theme.of(
798-
context,
799-
).extension<StackColors>()!.textDark,
800-
),
795+
style: STextStyles.desktopTextExtraExtraSmall(context)
796+
.copyWith(
797+
color: Theme.of(
798+
context,
799+
).extension<StackColors>()!.textDark,
800+
),
801801
),
802802
),
803803
SimpleEditButton(
804804
editValue: labelValue,
805805
editLabel: "label",
806806
overrideTitle: "Edit label",
807807
onValueChanged: (value) {
808-
final existingLabel =
809-
MainDB.instance.getAddressLabelSync(
810-
walletId,
811-
address,
812-
);
808+
final existingLabel = MainDB.instance
809+
.getAddressLabelSync(walletId, address);
813810
if (existingLabel != null) {
814811
MainDB.instance.putAddressLabel(
815812
existingLabel.copyWith(label: value),
@@ -850,7 +847,8 @@ class _DesktopReceiveState extends ConsumerState<DesktopReceive> {
850847
label: "Generate new address",
851848
),
852849
const SizedBox(height: 20),
853-
if ((isMimblewimblecoin || isEpiccash) && ref.watch(pIsSlatepack(widget.walletId)))
850+
if ((isMimblewimblecoin || isEpiccash) &&
851+
ref.watch(pIsSlatepack(widget.walletId)))
854852
Column(
855853
crossAxisAlignment: CrossAxisAlignment.start,
856854
children: [
@@ -981,15 +979,18 @@ class _DesktopReceiveState extends ConsumerState<DesktopReceive> {
981979

982980
// TODO: create transparent button class to account for hover
983981
// Conditional logic for 'Submit' button or QR code
984-
if ((isMimblewimblecoin || isEpiccash) && ref.watch(pIsSlatepack(widget.walletId)))
982+
if ((isMimblewimblecoin || isEpiccash) &&
983+
ref.watch(pIsSlatepack(widget.walletId)))
985984
Padding(
986985
padding: const EdgeInsets.symmetric(horizontal: 8.0),
987986
child: PrimaryButton(
988987
buttonHeight: ButtonHeight.l,
989988
label: "Receive Slatepack",
990989
enabled: _slateToggleFlag,
991990
onPressed: _slateToggleFlag
992-
? (isEpiccash ? _onEpicReceiveSlatePressed : _onReceiveSlatePressed)
991+
? (isEpiccash
992+
? _onEpicReceiveSlatePressed
993+
: _onReceiveSlatePressed)
993994
: null,
994995
),
995996
)

0 commit comments

Comments
 (0)