mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-08 20:07:46 -06:00
feat: Add response delay generator to mock_server
This commit is contained in:
@@ -75,7 +75,14 @@ Future<void> _initHive() async {
|
||||
|
||||
void main() async {
|
||||
if (kDebugMode) {
|
||||
await LocalMockApiServer().start();
|
||||
// URL: http://localhost:3131
|
||||
// Login: admin:test
|
||||
await LocalMockApiServer(
|
||||
RandomDelayGenerator(
|
||||
const Duration(milliseconds: 100),
|
||||
const Duration(milliseconds: 800),
|
||||
),
|
||||
).start();
|
||||
}
|
||||
await _initHive();
|
||||
final widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
Reference in New Issue
Block a user