mobile_skt/lib/widgets/empty.dart

26 lines
738 B
Dart
Raw Normal View History

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:sk_base_mobile/util/screen_adaper_util.dart';
class Empty extends StatelessWidget {
final String? text;
const Empty({super.key, this.text});
@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'))),
Text(
text ?? '',
textAlign: TextAlign.center,
2024-03-26 17:10:14 +08:00
style: TextStyle(fontSize: ScreenAdaper.sp(30)),
),
]),
);
}
}