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.
44 lines
1.4 KiB
Dart
44 lines
1.4 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:mc_common_app/extensions/int_extensions.dart';
|
|
import 'package:mc_common_app/extensions/string_extensions.dart';
|
|
import 'package:mc_common_app/theme/colors.dart';
|
|
import 'package:mc_common_app/widgets/extensions/extensions_widget.dart';
|
|
|
|
class InfoBottomSheet extends StatelessWidget {
|
|
final String title;
|
|
final String description;
|
|
|
|
const InfoBottomSheet({Key? key, required this.title, required this.description}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SizedBox(
|
|
height: MediaQuery.of(context).size.height * 0.4,
|
|
child: Column(
|
|
children: [
|
|
Container(
|
|
margin: const EdgeInsets.all(8),
|
|
height: 8,
|
|
width: 60,
|
|
decoration: const BoxDecoration(color: MyColors.lightTextColor, borderRadius: BorderRadius.all(Radius.circular(20))),
|
|
),
|
|
12.height,
|
|
Row(
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
children: [
|
|
title.toText(fontSize: 24, isBold: true),
|
|
],
|
|
),
|
|
8.height,
|
|
Flexible(
|
|
child: description.toText(
|
|
textAlign: TextAlign.justify,
|
|
fontSize: 16,
|
|
color: MyColors.lightTextColor,
|
|
isBold: true,
|
|
)),
|
|
],
|
|
).horPaddingMain());
|
|
}
|
|
}
|