Files
GitJournal/lib/setup/loading_error.dart
Vishesh Handa 5123938e53 Setup: Rename screen to Loading/Error screen
It's all that it does. This way we can re-use this screen in other
places.
2020-05-18 18:13:21 +02:00

24 lines
538 B
Dart

import 'package:flutter/material.dart';
import 'error.dart';
import 'loading.dart';
class GitHostSetupLoadingErrorPage extends StatelessWidget {
final String errorMessage;
final String loadingMessage;
GitHostSetupLoadingErrorPage({
@required this.errorMessage,
@required this.loadingMessage,
});
@override
Widget build(BuildContext context) {
if (errorMessage == null || errorMessage.isEmpty) {
return GitHostSetupLoadingPage(loadingMessage);
}
return GitHostSetupErrorPage(errorMessage);
}
}