mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
Improve UI of empty Explore and Category pages.
This commit is contained in:
@@ -6,6 +6,7 @@ class NetworkError extends StatelessWidget {
|
||||
required this.message,
|
||||
this.retry,
|
||||
this.withAppbar = true,
|
||||
this.buttonText,
|
||||
});
|
||||
|
||||
final String message;
|
||||
@@ -14,6 +15,8 @@ class NetworkError extends StatelessWidget {
|
||||
|
||||
final bool withAppbar;
|
||||
|
||||
final String? buttonText;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var cfe = CloudflareException.fromString(message);
|
||||
@@ -60,7 +63,7 @@ class NetworkError extends StatelessWidget {
|
||||
else
|
||||
FilledButton(
|
||||
onPressed: retry,
|
||||
child: Text('Retry'.tl),
|
||||
child: Text(buttonText ?? 'Retry'.tl),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
Reference in New Issue
Block a user