mirror of
https://github.com/seemoo-lab/openhaystack.git
synced 2026-08-19 19:46:24 +00:00
31 lines
851 B
Dart
31 lines
851 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:openhaystack_mobile/item_management/new_item_action.dart';
|
|
|
|
class NoAccessoriesPlaceholder extends StatelessWidget {
|
|
|
|
/// Displays a message that no accessories are present.
|
|
///
|
|
/// Allows the user to quickly add a new accessory.
|
|
const NoAccessoriesPlaceholder({ Key? key }) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Center(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: const [
|
|
Text(
|
|
'There\'s Nothing Here Yet\nAdd an accessory to get started.',
|
|
style: TextStyle(
|
|
fontSize: 20,
|
|
color: Colors.grey,
|
|
),
|
|
textAlign: TextAlign.center,
|
|
),
|
|
NewKeyAction(mini: true),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|