-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8cfb6d
commit 3e651f0
Showing
174 changed files
with
1,847 additions
and
1,245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-3.44 KB
android/app/src/main/res/drawable-nodpi/example_appwidget_preview.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import 'package:campus_flutter/base/enums/error_handling_view_type.dart'; | ||
import 'package:campus_flutter/base/errorHandling/error_handling_view.dart'; | ||
import 'package:campus_flutter/base/extensions/context.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:grpc/grpc.dart'; | ||
|
||
class GrpcErrorRouter extends StatelessWidget with ErrorHandlingView { | ||
GrpcErrorRouter({ | ||
super.key, | ||
required this.grpcError, | ||
required ErrorHandlingViewType errorHandlingViewType, | ||
Future<dynamic> Function(bool)? retry, | ||
Future<dynamic> Function(bool, BuildContext)? retryWithContext, | ||
Color? titleColor, | ||
Color? bodyColor, | ||
}) { | ||
this.errorHandlingViewType = errorHandlingViewType; | ||
this.retry = retry; | ||
this.retryWithContext = retryWithContext; | ||
this.titleColor = titleColor; | ||
this.bodyColor = bodyColor; | ||
} | ||
|
||
final GrpcError grpcError; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return exceptionMessage( | ||
context, | ||
grpcError.message ?? context.localizations.unknownError, | ||
null, | ||
); | ||
} | ||
} |
Oops, something went wrong.