Skip to content

Commit 47e09fa

Browse files
author
Sterling Long
committed
1.2.3
1 parent c3dec5d commit 47e09fa

6 files changed

Lines changed: 8 additions & 40 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.2.3
2+
3+
- Removed size constraints on WalletConnectModalConnect button
4+
15
## 1.2.2
26

37
- Updated to `walletconnect_flutter_v2` v2.1.3

lib/constants/constants.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'package:flutter/material.dart';
22

33
class WalletConnectModalConstants {
4-
static const WALLETCONNECT_MODAL_VERSION = '1.2.1';
4+
static const WALLETCONNECT_MODAL_VERSION = '1.2.3';
55

66
static const Key helpPageKey = Key('helpPageKey');
77
static const Key qrCodePageKey = Key('qrCodePageKey');

lib/services/utils/url/url_utils.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ class UrlUtils extends IUrlUtils {
7676
Uri? nativeUri,
7777
Uri? universalUri,
7878
}) async {
79-
print(
80-
'Navigating deep links. Native: ${nativeUri.toString()}, Universal: ${universalUri.toString()}',
81-
);
8279
LoggerUtil.logger.i(
8380
'Navigating deep links. Native: ${nativeUri.toString()}, Universal: ${universalUri.toString()}',
8481
);

lib/services/walletconnect_modal/walletconnect_modal_service.dart

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,6 @@ class WalletConnectModalService extends ChangeNotifier
174174

175175
final bool bottomSheet = platformUtils.instance.isBottomSheet();
176176

177-
// platformUtils.instance.getPlatformType() == PlatformType.mobile ||
178-
// platformUtils.instance.isMobileWidth(
179-
// MediaQuery.of(context).size.width,
180-
// );
181-
182177
notifyListeners();
183178

184179
final WalletConnectModalTheme? theme =
@@ -341,16 +336,6 @@ class WalletConnectModalService extends ChangeNotifier
341336
notifyListeners();
342337
}
343338

344-
// @override
345-
// void setRequiredNamespaces(Map<String, RequiredNamespace> namespaces) {
346-
// _checkInitialized();
347-
// LoggerUtil.logger.i('Setting Required namespaces: $namespaces');
348-
349-
// _requiredNamespaces = namespaces;
350-
351-
// notifyListeners();
352-
// }
353-
354339
@override
355340
String getReferer() {
356341
_checkInitialized();
@@ -368,11 +353,7 @@ class WalletConnectModalService extends ChangeNotifier
368353

369354
if (connectResponse != null) {
370355
try {
371-
sessionFuture!.timeout(
372-
const Duration(
373-
milliseconds: 0,
374-
),
375-
);
356+
sessionFuture!.timeout(Duration.zero);
376357
} on TimeoutException {
377358
// Ignore this error, just wanted to cancel the previous future.
378359
}
@@ -439,6 +420,7 @@ class WalletConnectModalService extends ChangeNotifier
439420
void _onSessionDelete(SessionDelete? args) {
440421
_isConnected = false;
441422
_address = '';
423+
_session = null;
442424

443425
notifyListeners();
444426
}

lib/widgets/walletconnect_modal_connect.dart

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ class WalletConnectModalConnect extends StatefulWidget {
3232
}
3333

3434
class _WalletConnectModalConnectState extends State<WalletConnectModalConnect> {
35-
static const double buttonHeight = 60;
36-
static const double buttonWidthMin = 150;
37-
static const double buttonWidthMax = 200;
38-
3935
WalletConnectModalConnectButtonState _state =
4036
WalletConnectModalConnectButtonState.idle;
4137

@@ -57,17 +53,6 @@ class _WalletConnectModalConnectState extends State<WalletConnectModalConnect> {
5753

5854
@override
5955
Widget build(BuildContext context) {
60-
return Container(
61-
constraints: const BoxConstraints(
62-
minHeight: buttonHeight,
63-
minWidth: buttonWidthMin,
64-
maxWidth: buttonWidthMax,
65-
),
66-
child: _buildButton(context),
67-
);
68-
}
69-
70-
Widget _buildButton(BuildContext context) {
7156
final WalletConnectModalThemeData themeData =
7257
WalletConnectModalTheme.getData(context);
7358

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: walletconnect_modal_flutter
22
description: The WalletConnectModal for WalletConnect built using Flutter.
3-
version: 1.2.2
3+
version: 1.2.3
44
repository: https://github.com/WalletConnect/WalletConnectModalFlutter
55

66
environment:

0 commit comments

Comments
 (0)