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 {
|
||||
configBox.delete('endpoint');
|
||||
|
||||
List _listEndpoints = [];
|
||||
if (!configBox.containsKey('endpoint') ||
|
||||
configBox.get('endpoint') == [] ||
|
||||
|
|
|
@ -506,7 +506,7 @@ void snackNode(BuildContext context, bool isConnected) {
|
|||
String _message;
|
||||
if (!isConnected) {
|
||||
_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 {
|
||||
SubstrateSdk _sub = Provider.of<SubstrateSdk>(context, listen: false);
|
||||
|
||||
|
@ -516,7 +516,7 @@ void snackNode(BuildContext context, bool isConnected) {
|
|||
final snackBar = SnackBar(
|
||||
padding: const EdgeInsets.all(20),
|
||||
content: Text(_message, style: const TextStyle(fontSize: 16)),
|
||||
duration: const Duration(seconds: 2));
|
||||
duration: const Duration(seconds: 4));
|
||||
ScaffoldMessenger.of(context).showSnackBar(snackBar);
|
||||
}
|
||||
|
||||
|
|
|
@ -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+5
|
||||
version: 0.0.6+6
|
||||
|
||||
environment:
|
||||
sdk: '>=2.12.0 <3.0.0'
|
||||
|
|
|
@ -22,8 +22,8 @@ else
|
|||
# flutter build apk --release --build-name $VERSION --build-number $BUILD
|
||||
fi
|
||||
|
||||
if [[ -d $HOME/Nextcloud/Gecko-APK ]]; then
|
||||
DL="$HOME/Nextcloud/Gecko-APK"
|
||||
if [[ -d $HOME/kDrive/Gecko-APK ]]; then
|
||||
DL="$HOME/kDrive/Gecko-APK"
|
||||
elif [[ -d $HOME/Téléchargements ]]; then
|
||||
DL="$HOME/Téléchargements"
|
||||
elif [[ -d $HOME/Downloads ]]; then
|
||||
|
|
Loading…
Reference in New Issue