Files
2022-05-12 15:28:06 +02:00

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),
],
),
);
}
}