2024-03-18 13:23:58 +08:00
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:sk_base_mobile/util/screen_adaper_util.dart';
|
|
|
|
|
|
|
|
class Empty extends StatelessWidget {
|
2024-03-20 18:31:37 +08:00
|
|
|
final String? text;
|
|
|
|
const Empty({super.key, this.text});
|
2024-03-18 13:23:58 +08:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Center(
|
|
|
|
child: Column(mainAxisAlignment: MainAxisAlignment.center, children: [
|
2024-03-25 14:16:00 +08:00
|
|
|
// Center(
|
|
|
|
// child: Image(
|
|
|
|
// height: ScreenAdaper.height(130),
|
|
|
|
// image: const AssetImage('assets/images/empty_icon.png'))),
|
2024-03-18 13:23:58 +08:00
|
|
|
Text(
|
|
|
|
text ?? '',
|
|
|
|
textAlign: TextAlign.center,
|
2024-03-28 17:18:46 +08:00
|
|
|
style: TextStyle(fontSize: ScreenAdaper.height(30)),
|
2024-03-18 13:23:58 +08:00
|
|
|
),
|
|
|
|
]),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|