You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
595 B
Dart
28 lines
595 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:test_sa/views/app_style/sizing.dart';
|
|
|
|
class NoItemFound extends StatelessWidget {
|
|
final String message;
|
|
|
|
const NoItemFound({
|
|
Key key,
|
|
this.message,
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Stack(
|
|
children: [
|
|
Center(
|
|
child: Text(
|
|
message ?? "no item found",
|
|
style: Theme.of(context).textTheme.headline6,
|
|
textScaleFactor: AppStyle.getScaleFactor(context),
|
|
),
|
|
),
|
|
ListView(),
|
|
],
|
|
);
|
|
}
|
|
}
|