mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
33 lines
927 B
Dart
33 lines
927 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:spotube/collections/assets.gen.dart';
|
|
import 'package:spotube/extensions/context.dart';
|
|
|
|
class NotFound extends StatelessWidget {
|
|
final bool vertical;
|
|
const NotFound({super.key, this.vertical = false});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final theme = Theme.of(context);
|
|
final widgets = [
|
|
SizedBox(
|
|
height: 150,
|
|
width: 150,
|
|
child: Assets.emptyBox.image(),
|
|
),
|
|
Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Text(context.l10n.nothing_found, style: theme.textTheme.titleLarge),
|
|
Text(
|
|
context.l10n.the_box_is_empty,
|
|
style: theme.textTheme.titleMedium,
|
|
),
|
|
],
|
|
),
|
|
];
|
|
return vertical ? Column(children: widgets) : Row(children: widgets);
|
|
}
|
|
}
|