| 1 | import 'package:hugeicons/hugeicons.dart'; |
| 2 | import 'package:flutter/material.dart'; |
| 3 | import 'package:localmind/core/theme/colors.dart'; |
| 4 | import 'package:localmind/l10n/app_localizations.dart'; |
| 5 | |
| 6 | class NoServerState extends StatelessWidget { |
| 7 | const NoServerState({super.key, required this.isDark}); |
| 8 | final bool isDark; |
| 9 | |
| 10 | @override |
| 11 | Widget build(BuildContext context) { |
| 12 | final l10n = AppLocalizations.of(context)!; |
| 13 | return Center( |
| 14 | child: Column( |
| 15 | mainAxisAlignment: MainAxisAlignment.center, |
| 16 | children: [ |
| 17 | HugeIcon( |
| 18 | icon: HugeIcons.strokeRoundedComputer, |
| 19 | size: 48, |
| 20 | color: isDark ? AppColors.darkMutedText : AppColors.lightMutedText, |
| 21 | ), |
| 22 | const SizedBox(height: 16), |
| 23 | Text( |
| 24 | l10n.no_server_connected, |
| 25 | style: TextStyle( |
| 26 | fontSize: 16, |
| 27 | fontWeight: FontWeight.w500, |
| 28 | color: isDark ? Colors.white : Colors.black, |
| 29 | ), |
| 30 | ), |
| 31 | const SizedBox(height: 4), |
| 32 | Text( |
| 33 | l10n.add_server_first, |
| 34 | style: TextStyle( |
| 35 | fontSize: 13, |
| 36 | color: isDark |
| 37 | ? AppColors.darkMutedText |
| 38 | : AppColors.lightMutedText, |
| 39 | ), |
| 40 | ), |
| 41 | ], |
| 42 | ), |
| 43 | ); |
| 44 | } |
| 45 | } |