redesigned payment page + a lot of fixes
This commit is contained in:
31
frontend/pweb/lib/pages/report/operations/states/error.dart
Normal file
31
frontend/pweb/lib/pages/report/operations/states/error.dart
Normal file
@@ -0,0 +1,31 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
|
||||
class OperationHistoryError extends StatelessWidget {
|
||||
final String message;
|
||||
final String retryLabel;
|
||||
final VoidCallback onRetry;
|
||||
|
||||
const OperationHistoryError({
|
||||
super.key,
|
||||
required this.message,
|
||||
required this.retryLabel,
|
||||
required this.onRetry,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(message),
|
||||
ElevatedButton(
|
||||
onPressed: onRetry,
|
||||
child: Text(retryLabel),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
|
||||
class OperationHistoryLoading extends StatelessWidget {
|
||||
const OperationHistoryLoading({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return const Center(child: CircularProgressIndicator());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user