You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
car_common_app/lib/widgets/empty_widget.dart

26 lines
818 B
Dart

import 'package:flutter/material.dart';
import 'package:mc_common_app/classes/consts.dart';
import 'package:mc_common_app/extensions/string_extensions.dart';
import 'package:mc_common_app/theme/colors.dart';
class EmptyWidget extends StatelessWidget {
final String text;
final bool isWrapedColumn;
const EmptyWidget({Key? key, required this.text, this.isWrapedColumn = true}) : super(key: key);
@override
Widget build(BuildContext context) {
if (isWrapedColumn) {
return Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
text.toText(fontSize: 16, color: MyColors.lightTextColor, fontWeight: MyFonts.Medium),
],
);
}
return Center(child: text.toText(fontSize: 16, color: MyColors.lightTextColor, fontWeight: MyFonts.Medium));
}
}