mobile_skt/lib/widgets/empty.dart

28 lines
759 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(
2024-04-02 12:24:08 +08:00
child: Row(mainAxisAlignment: MainAxisAlignment.center, children: [
Center(
child: Icon(Icons.error_outline,
size: ScreenAdaper.height(40), color: Colors.red)),
SizedBox(
width: ScreenAdaper.width(10),
),
Text(
text ?? '',
textAlign: TextAlign.center,
2024-04-02 12:24:08 +08:00
style: TextStyle(fontSize: ScreenAdaper.height(35)),
),
]),
);
}
}