More debug in snackBar
This commit is contained in:
parent
8c390e511e
commit
459b3f0c29
|
@ -58,8 +58,6 @@ class HomeProvider with ChangeNotifier {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<List?> getValidEndpoints() async {
|
Future<List?> getValidEndpoints() async {
|
||||||
configBox.delete('endpoint');
|
|
||||||
|
|
||||||
List _listEndpoints = [];
|
List _listEndpoints = [];
|
||||||
if (!configBox.containsKey('endpoint') ||
|
if (!configBox.containsKey('endpoint') ||
|
||||||
configBox.get('endpoint') == [] ||
|
configBox.get('endpoint') == [] ||
|
||||||
|
|
|
@ -506,7 +506,7 @@ void snackNode(BuildContext context, bool isConnected) {
|
||||||
String _message;
|
String _message;
|
||||||
if (!isConnected) {
|
if (!isConnected) {
|
||||||
_message =
|
_message =
|
||||||
"Aucun noeud Duniter disponible, veuillez réessayer ultérieurement";
|
"Aucun noeud Duniter disponible, veuillez réessayer ultérieurement:\n${configBox.get('endpoint').first}";
|
||||||
} else {
|
} else {
|
||||||
SubstrateSdk _sub = Provider.of<SubstrateSdk>(context, listen: false);
|
SubstrateSdk _sub = Provider.of<SubstrateSdk>(context, listen: false);
|
||||||
|
|
||||||
|
@ -516,7 +516,7 @@ void snackNode(BuildContext context, bool isConnected) {
|
||||||
final snackBar = SnackBar(
|
final snackBar = SnackBar(
|
||||||
padding: const EdgeInsets.all(20),
|
padding: const EdgeInsets.all(20),
|
||||||
content: Text(_message, style: const TextStyle(fontSize: 16)),
|
content: Text(_message, style: const TextStyle(fontSize: 16)),
|
||||||
duration: const Duration(seconds: 2));
|
duration: const Duration(seconds: 4));
|
||||||
ScaffoldMessenger.of(context).showSnackBar(snackBar);
|
ScaffoldMessenger.of(context).showSnackBar(snackBar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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+5
|
version: 0.0.6+6
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.12.0 <3.0.0'
|
sdk: '>=2.12.0 <3.0.0'
|
||||||
|
|
|
@ -22,8 +22,8 @@ else
|
||||||
# flutter build apk --release --build-name $VERSION --build-number $BUILD
|
# flutter build apk --release --build-name $VERSION --build-number $BUILD
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -d $HOME/Nextcloud/Gecko-APK ]]; then
|
if [[ -d $HOME/kDrive/Gecko-APK ]]; then
|
||||||
DL="$HOME/Nextcloud/Gecko-APK"
|
DL="$HOME/kDrive/Gecko-APK"
|
||||||
elif [[ -d $HOME/Téléchargements ]]; then
|
elif [[ -d $HOME/Téléchargements ]]; then
|
||||||
DL="$HOME/Téléchargements"
|
DL="$HOME/Téléchargements"
|
||||||
elif [[ -d $HOME/Downloads ]]; then
|
elif [[ -d $HOME/Downloads ]]; then
|
||||||
|
|
Loading…
Reference in New Issue