New screen names

This commit is contained in:
2023-12-18 14:47:54 +03:00
parent 402f1ff5a4
commit 2a89da4ea7
181 changed files with 6105 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
import 'package:flutter/material.dart';
import 'package:eatvio_app/main.dart';
class ServerException implements Exception {}
class CacheException implements Exception {}
class NetworkException implements Exception {}
///can be used for throwing [NoInternetException]
class NoInternetException implements Exception {
late String _message;
NoInternetException([String message = 'NoInternetException Occurred']) {
if (globalMessengerKey.currentState != null) {
globalMessengerKey.currentState!
.showSnackBar(SnackBar(content: Text(message)));
}
this._message = message;
}
@override
String toString() {
return _message;
}
}