40 lines
1.1 KiB
Dart
40 lines
1.1 KiB
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:get/get.dart';
|
|
import 'package:star_lock/app_settings/app_colors.dart';
|
|
|
|
import '../translations/trans_lib.dart';
|
|
|
|
class NoData extends StatelessWidget {
|
|
double? noDataHeight;
|
|
NoData({Key? key, this.noDataHeight}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SingleChildScrollView(
|
|
child: SizedBox(
|
|
width: 1.sw,
|
|
height: noDataHeight ?? 1.sh - ScreenUtil().statusBarHeight,
|
|
// height: 1.sw,
|
|
child: Center(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
children: [
|
|
Image.asset(
|
|
'images/icon_noData.png',
|
|
width: 160.w,
|
|
height: 180.h,
|
|
),
|
|
Text(
|
|
TranslationLoader.lanKeys!.noData!.tr,
|
|
style:
|
|
TextStyle(color: AppColors.darkGrayTextColor, fontSize: 22.sp),
|
|
)
|
|
],
|
|
)),
|
|
),
|
|
);
|
|
}
|
|
}
|