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: [
|
|
|
|
Center(
|
|
|
|
child: Image(
|
|
|
|
height: ScreenAdaper.height(130),
|
2024-03-20 18:31:37 +08:00
|
|
|
image: const AssetImage('assets/images/empty_icon.png'))),
|
2024-03-18 13:23:58 +08:00
|
|
|
Text(
|
|
|
|
text ?? '',
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
style: TextStyle(fontSize: ScreenAdaper.sp(18)),
|
|
|
|
),
|
|
|
|
]),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|