2022-12-05 08:06:45 +00:00
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/src/widgets/container.dart';
|
|
|
|
import 'package:flutter/src/widgets/framework.dart';
|
|
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
|
|
import 'package:unit2/theme-data.dart/text-styles.dart';
|
|
|
|
|
|
|
|
import '../../../../utils/global.dart';
|
|
|
|
import '../../../../utils/text_container.dart';
|
|
|
|
|
|
|
|
class NoModule extends StatelessWidget {
|
|
|
|
const NoModule({super.key});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Container(
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 25),
|
|
|
|
width: double.infinity,
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
SvgPicture.asset(
|
|
|
|
'assets/svgs/no_module.svg',
|
|
|
|
height: blockSizeVertical * 30,
|
|
|
|
allowDrawingOutsideViewBox: true,
|
|
|
|
),
|
|
|
|
const SizedBox(
|
|
|
|
height: 24,
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
noModule,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
style: Theme.of(context)
|
|
|
|
.textTheme
|
|
|
|
.displayLarge!
|
|
|
|
.copyWith(fontSize: blockSizeVertical * 5, height: .8),
|
|
|
|
),
|
|
|
|
const SizedBox(
|
|
|
|
height: 5,
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
noModuleSubTitle,
|
|
|
|
style: Theme.of(context)
|
|
|
|
.textTheme
|
2024-07-11 01:27:35 +00:00
|
|
|
.bodySmall!
|
2022-12-05 08:06:45 +00:00
|
|
|
.copyWith(fontSize: blockSizeVertical * 1.5),
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
)
|
|
|
|
]),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|