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 { 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) {

View File

@ -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') == [] ||

View File

@ -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;

View File

@ -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),

View File

@ -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),

View File

@ -106,6 +106,9 @@ class WalletOptions extends StatelessWidget {
); );
}), }),
SizedBox(height: 10 * ratio), SizedBox(height: 10 * ratio),
Expanded(
child: SingleChildScrollView(
child: Column(children: <Widget>[
QrImageWidget( QrImageWidget(
data: _walletOptions.address.text, data: _walletOptions.address.text,
version: QrVersions.auto, version: QrVersions.auto,
@ -117,19 +120,23 @@ class WalletOptions extends StatelessWidget {
return Column(children: [ return Column(children: [
pubkeyWidget(walletProvider, ctx), pubkeyWidget(walletProvider, ctx),
SizedBox(height: 10 * ratio), SizedBox(height: 10 * ratio),
historyWidget(context, _historyProvider, walletProvider), historyWidget(
context, _historyProvider, walletProvider),
SizedBox(height: 12 * ratio), SizedBox(height: 12 * ratio),
setDefaultWallet(context, walletProvider, _myWalletProvider, setDefaultWallet(context, walletProvider,
_walletOptions, _currentChest), _myWalletProvider, _walletOptions, _currentChest),
SizedBox(height: 17 * ratio), SizedBox(height: 17 * ratio),
if (!walletProvider.isDefaultWallet) if (!walletProvider.isDefaultWallet)
deleteWallet(context, walletProvider, _myWalletProvider, deleteWallet(context, walletProvider,
_currentChest) _myWalletProvider, _currentChest)
]); ]);
}), }),
]), ]),
), ),
), ),
]),
),
),
), ),
); );
} }

View File

@ -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),

View File

@ -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,

View File

@ -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:

View File

@ -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'