fix: reponsive; Add 2 bootstrap endpoints
This commit is contained in:
parent
7ae1d2ecd2
commit
3b0a49f216
|
@ -1,3 +1,6 @@
|
||||||
[
|
[
|
||||||
"wss://gdev.librelois.fr/ws"
|
"wss://gdev.librelois.fr/ws",
|
||||||
|
"wss://gdev.1000i100.fr/ws",
|
||||||
|
"wss://gdev.komun.org/ws"
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
|
@ -14,7 +14,7 @@ class ChestProvider with ChangeNotifier {
|
||||||
Future deleteChest(context, ChestData _chest) async {
|
Future deleteChest(context, ChestData _chest) async {
|
||||||
final bool? _answer = await (_confirmDeletingChest(context, _chest.name));
|
final bool? _answer = await (_confirmDeletingChest(context, _chest.name));
|
||||||
SubstrateSdk _sub = Provider.of<SubstrateSdk>(context, listen: false);
|
SubstrateSdk _sub = Provider.of<SubstrateSdk>(context, listen: false);
|
||||||
if (_answer!) {
|
if (_answer ?? false) {
|
||||||
await _sub.deleteAccounts(getChestWallets(_chest));
|
await _sub.deleteAccounts(getChestWallets(_chest));
|
||||||
await chestBox.delete(_chest.key);
|
await chestBox.delete(_chest.key);
|
||||||
if (chestBox.isEmpty) {
|
if (chestBox.isEmpty) {
|
||||||
|
|
|
@ -61,6 +61,8 @@ class HomeProvider with ChangeNotifier {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<List?> getValidEndpoints() async {
|
Future<List?> getValidEndpoints() async {
|
||||||
|
await configBox.delete('endpoint');
|
||||||
|
|
||||||
List _listEndpoints = [];
|
List _listEndpoints = [];
|
||||||
if (!configBox.containsKey('endpoint') ||
|
if (!configBox.containsKey('endpoint') ||
|
||||||
configBox.get('endpoint') == [] ||
|
configBox.get('endpoint') == [] ||
|
||||||
|
|
|
@ -48,7 +48,6 @@ class SubstrateSdk with ChangeNotifier {
|
||||||
List<NetworkParams> node = [];
|
List<NetworkParams> node = [];
|
||||||
|
|
||||||
for (String _endpoint in configBox.get('endpoint')) {
|
for (String _endpoint in configBox.get('endpoint')) {
|
||||||
log.d(_endpoint);
|
|
||||||
final n = NetworkParams();
|
final n = NetworkParams();
|
||||||
n.name = currencyName;
|
n.name = currencyName;
|
||||||
n.endpoint = _endpoint;
|
n.endpoint = _endpoint;
|
||||||
|
|
|
@ -35,6 +35,7 @@ class ChangePinScreen extends StatelessWidget with ChangeNotifier {
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
resizeToAvoidBottomInset: false,
|
resizeToAvoidBottomInset: false,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
|
elevation: 1,
|
||||||
toolbarHeight: 60 * ratio,
|
toolbarHeight: 60 * ratio,
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
icon: const Icon(Icons.arrow_back, color: Colors.black),
|
icon: const Icon(Icons.arrow_back, color: Colors.black),
|
||||||
|
|
|
@ -26,6 +26,7 @@ class ChestOptions extends StatelessWidget {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
resizeToAvoidBottomInset: false,
|
resizeToAvoidBottomInset: false,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
|
elevation: 1,
|
||||||
toolbarHeight: 60 * ratio,
|
toolbarHeight: 60 * ratio,
|
||||||
// leading: IconButton(
|
// leading: IconButton(
|
||||||
// icon: const Icon(Icons.arrow_back, color: Colors.black),
|
// icon: const Icon(Icons.arrow_back, color: Colors.black),
|
||||||
|
|
|
@ -106,27 +106,34 @@ class WalletOptions extends StatelessWidget {
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
SizedBox(height: 10 * ratio),
|
SizedBox(height: 10 * ratio),
|
||||||
QrImageWidget(
|
Expanded(
|
||||||
data: _walletOptions.address.text,
|
child: SingleChildScrollView(
|
||||||
version: QrVersions.auto,
|
child: Column(children: <Widget>[
|
||||||
size: isTall ? 300 : 270,
|
QrImageWidget(
|
||||||
|
data: _walletOptions.address.text,
|
||||||
|
version: QrVersions.auto,
|
||||||
|
size: isTall ? 300 : 270,
|
||||||
|
),
|
||||||
|
SizedBox(height: 15 * ratio),
|
||||||
|
Consumer<WalletOptionsProvider>(
|
||||||
|
builder: (context, walletProvider, _) {
|
||||||
|
return Column(children: [
|
||||||
|
pubkeyWidget(walletProvider, ctx),
|
||||||
|
SizedBox(height: 10 * ratio),
|
||||||
|
historyWidget(
|
||||||
|
context, _historyProvider, walletProvider),
|
||||||
|
SizedBox(height: 12 * ratio),
|
||||||
|
setDefaultWallet(context, walletProvider,
|
||||||
|
_myWalletProvider, _walletOptions, _currentChest),
|
||||||
|
SizedBox(height: 17 * ratio),
|
||||||
|
if (!walletProvider.isDefaultWallet)
|
||||||
|
deleteWallet(context, walletProvider,
|
||||||
|
_myWalletProvider, _currentChest)
|
||||||
|
]);
|
||||||
|
}),
|
||||||
|
]),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
SizedBox(height: 15 * ratio),
|
|
||||||
Consumer<WalletOptionsProvider>(
|
|
||||||
builder: (context, walletProvider, _) {
|
|
||||||
return Column(children: [
|
|
||||||
pubkeyWidget(walletProvider, ctx),
|
|
||||||
SizedBox(height: 10 * ratio),
|
|
||||||
historyWidget(context, _historyProvider, walletProvider),
|
|
||||||
SizedBox(height: 12 * ratio),
|
|
||||||
setDefaultWallet(context, walletProvider, _myWalletProvider,
|
|
||||||
_walletOptions, _currentChest),
|
|
||||||
SizedBox(height: 17 * ratio),
|
|
||||||
if (!walletProvider.isDefaultWallet)
|
|
||||||
deleteWallet(context, walletProvider, _myWalletProvider,
|
|
||||||
_currentChest)
|
|
||||||
]);
|
|
||||||
}),
|
|
||||||
]),
|
]),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -41,6 +41,7 @@ class WalletsHome extends StatelessWidget {
|
||||||
},
|
},
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
|
elevation: 1,
|
||||||
toolbarHeight: 60 * ratio,
|
toolbarHeight: 60 * ratio,
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
icon: const Icon(Icons.arrow_back, color: Colors.black),
|
icon: const Icon(Icons.arrow_back, color: Colors.black),
|
||||||
|
|
|
@ -16,7 +16,6 @@ class SearchScreen extends StatelessWidget {
|
||||||
SearchProvider _searchProvider = Provider.of<SearchProvider>(context);
|
SearchProvider _searchProvider = Provider.of<SearchProvider>(context);
|
||||||
final double screenHeight = MediaQuery.of(context).size.height;
|
final double screenHeight = MediaQuery.of(context).size.height;
|
||||||
|
|
||||||
|
|
||||||
return WillPopScope(
|
return WillPopScope(
|
||||||
onWillPop: () {
|
onWillPop: () {
|
||||||
_searchProvider.searchController.text = '';
|
_searchProvider.searchController.text = '';
|
||||||
|
@ -24,6 +23,7 @@ class SearchScreen extends StatelessWidget {
|
||||||
},
|
},
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
|
elevation: 1,
|
||||||
toolbarHeight: 60 * ratio,
|
toolbarHeight: 60 * ratio,
|
||||||
title: const SizedBox(
|
title: const SizedBox(
|
||||||
height: 22,
|
height: 22,
|
||||||
|
|
10
pubspec.lock
10
pubspec.lock
|
@ -112,7 +112,7 @@ packages:
|
||||||
name: build_resolvers
|
name: build_resolvers
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.8"
|
version: "2.0.9"
|
||||||
build_runner:
|
build_runner:
|
||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
|
@ -983,10 +983,10 @@ packages:
|
||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: fixAndroidActivityVersion
|
ref: fixAndroidActivityVersion
|
||||||
resolved-ref: e33351cde5ea9b55d191772fe3b36f9dbb8277e6
|
resolved-ref: "069a9f696ec8d9eacd0a3fdd284116fd2c1faf44"
|
||||||
url: "https://github.com/poka-IT/sdk.git"
|
url: "https://github.com/poka-IT/sdk.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.4.5"
|
version: "0.4.6"
|
||||||
pool:
|
pool:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -1389,7 +1389,7 @@ packages:
|
||||||
name: webview_flutter_android
|
name: webview_flutter_android
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.8.8"
|
version: "2.8.9"
|
||||||
webview_flutter_platform_interface:
|
webview_flutter_platform_interface:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -1403,7 +1403,7 @@ packages:
|
||||||
name: webview_flutter_wkwebview
|
name: webview_flutter_wkwebview
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.7.5"
|
version: "2.8.0"
|
||||||
win32:
|
win32:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -5,7 +5,7 @@ description: Pay with G1.
|
||||||
# pub.dev using `pub publish`. This is preferred for private packages.
|
# pub.dev using `pub publish`. This is preferred for private packages.
|
||||||
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||||
|
|
||||||
version: 0.0.6+7
|
version: 0.0.6+8
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.12.0 <3.0.0'
|
sdk: '>=2.12.0 <3.0.0'
|
||||||
|
|
Loading…
Reference in New Issue