mod: tmply disable grpc reply

Closes #114

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-07 12:00:11 +08:00
parent da3c087ade
commit a0afbb2615
5 changed files with 89 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ class HttpError extends StatelessWidget {
this.errMsg,
this.callback,
this.btnText,
this.extraWidget,
super.key,
});
@@ -14,6 +15,7 @@ class HttpError extends StatelessWidget {
final String? errMsg;
final Function()? callback;
final String? btnText;
final Widget? extraWidget;
@override
Widget build(BuildContext context) {
@@ -44,8 +46,13 @@ class HttpError extends StatelessWidget {
style: Theme.of(context).textTheme.titleSmall,
),
),
if (extraWidget != null) ...[
const SizedBox(height: 10),
extraWidget!,
const SizedBox(height: 5),
],
if (callback != null) ...[
const SizedBox(height: 20),
if (extraWidget == null) const SizedBox(height: 20),
FilledButton.tonal(
onPressed: callback,
style: ButtonStyle(