Files
gomix_flutter/lib/error_page.dart
minie4 959796210d Implement WebSocket API client
- List ports
- Read and write mute state
- Read and write volume
2024-02-29 11:49:49 +01:00

33 lines
789 B
Dart

import 'package:flutter/material.dart';
class ErrorPage extends StatefulWidget {
final String message;
const ErrorPage({super.key, this.message = "Something went wrong!"});
@override
State<ErrorPage> createState() => _ErrorPageState();
}
class _ErrorPageState extends State<ErrorPage> {
@override
Widget build(BuildContext context) {
return Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Icon(
Icons.cloud_off_outlined,
size: 48,
),
const SizedBox(height: 10),
Text(
widget.message,
style: const TextStyle(fontSize: 16),
)
],
),
);
}
}