fix: reponsive; Add 2 bootstrap endpoints

This commit is contained in:
poka 2022-05-28 00:04:37 +02:00
parent 7ae1d2ecd2
commit 3b0a49f216
11 changed files with 44 additions and 30 deletions

View File

@ -1,3 +1,6 @@
[
"wss://gdev.librelois.fr/ws"
"wss://gdev.librelois.fr/ws",
"wss://gdev.1000i100.fr/ws",
"wss://gdev.komun.org/ws"
]

View File

@ -14,7 +14,7 @@ class ChestProvider with ChangeNotifier {
Future deleteChest(context, ChestData _chest) async {
final bool? _answer = await (_confirmDeletingChest(context, _chest.name));
SubstrateSdk _sub = Provider.of<SubstrateSdk>(context, listen: false);
if (_answer!) {
if (_answer ?? false) {
await _sub.deleteAccounts(getChestWallets(_chest));
await chestBox.delete(_chest.key);
if (chestBox.isEmpty) {

View File

@ -61,6 +61,8 @@ class HomeProvider with ChangeNotifier {
}
Future<List?> getValidEndpoints() async {
await configBox.delete('endpoint');
List _listEndpoints = [];
if (!configBox.containsKey('endpoint') ||
configBox.get('endpoint') == [] ||

View File

@ -48,7 +48,6 @@ class SubstrateSdk with ChangeNotifier {
List<NetworkParams> node = [];
for (String _endpoint in configBox.get('endpoint')) {
log.d(_endpoint);
final n = NetworkParams();
n.name = currencyName;
n.endpoint = _endpoint;

View File

@ -35,6 +35,7 @@ class ChangePinScreen extends StatelessWidget with ChangeNotifier {
child: Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar(
elevation: 1,
toolbarHeight: 60 * ratio,
leading: IconButton(
icon: const Icon(Icons.arrow_back, color: Colors.black),

View File

@ -26,6 +26,7 @@ class ChestOptions extends StatelessWidget {
return Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar(
elevation: 1,
toolbarHeight: 60 * ratio,
// leading: IconButton(
// icon: const Icon(Icons.arrow_back, color: Colors.black),

View File

@ -106,27 +106,34 @@ class WalletOptions extends StatelessWidget {
);
}),
SizedBox(height: 10 * ratio),
QrImageWidget(
data: _walletOptions.address.text,
version: QrVersions.auto,
size: isTall ? 300 : 270,
Expanded(
child: SingleChildScrollView(
child: Column(children: <Widget>[
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)
]);
}),
]),
),
),

View File

@ -41,6 +41,7 @@ class WalletsHome extends StatelessWidget {
},
child: Scaffold(
appBar: AppBar(
elevation: 1,
toolbarHeight: 60 * ratio,
leading: IconButton(
icon: const Icon(Icons.arrow_back, color: Colors.black),

View File

@ -16,7 +16,6 @@ class SearchScreen extends StatelessWidget {
SearchProvider _searchProvider = Provider.of<SearchProvider>(context);
final double screenHeight = MediaQuery.of(context).size.height;
return WillPopScope(
onWillPop: () {
_searchProvider.searchController.text = '';
@ -24,6 +23,7 @@ class SearchScreen extends StatelessWidget {
},
child: Scaffold(
appBar: AppBar(
elevation: 1,
toolbarHeight: 60 * ratio,
title: const SizedBox(
height: 22,

View File

@ -112,7 +112,7 @@ packages:
name: build_resolvers
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.8"
version: "2.0.9"
build_runner:
dependency: "direct dev"
description:
@ -983,10 +983,10 @@ packages:
description:
path: "."
ref: fixAndroidActivityVersion
resolved-ref: e33351cde5ea9b55d191772fe3b36f9dbb8277e6
resolved-ref: "069a9f696ec8d9eacd0a3fdd284116fd2c1faf44"
url: "https://github.com/poka-IT/sdk.git"
source: git
version: "0.4.5"
version: "0.4.6"
pool:
dependency: transitive
description:
@ -1389,7 +1389,7 @@ packages:
name: webview_flutter_android
url: "https://pub.dartlang.org"
source: hosted
version: "2.8.8"
version: "2.8.9"
webview_flutter_platform_interface:
dependency: transitive
description:
@ -1403,7 +1403,7 @@ packages:
name: webview_flutter_wkwebview
url: "https://pub.dartlang.org"
source: hosted
version: "2.7.5"
version: "2.8.0"
win32:
dependency: transitive
description:

View File

@ -5,7 +5,7 @@ description: Pay with G1.
# 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
version: 0.0.6+7
version: 0.0.6+8
environment:
sdk: '>=2.12.0 <3.0.0'