pikapika/lib/screens/components/ComicDescriptionCard.dart

36 lines
780 B
Dart
Raw Normal View History

2021-09-29 23:57:09 +00:00
import 'package:flutter/material.dart';
// 漫画的说明
class ComicDescriptionCard extends StatelessWidget {
final String description;
2022-03-17 03:31:25 +00:00
const ComicDescriptionCard({Key? key, required this.description})
: super(key: key);
2021-09-29 23:57:09 +00:00
@override
Widget build(BuildContext context) {
var theme = Theme.of(context);
return Container(
2022-03-17 03:31:25 +00:00
padding: const EdgeInsets.only(
2021-09-29 23:57:09 +00:00
top: 5,
bottom: 5,
left: 10,
right: 10,
),
decoration: BoxDecoration(
border: Border(
bottom: BorderSide(
color: theme.dividerColor,
),
),
),
child: SelectableText(description, style: _categoriesStyle),
);
}
}
const _categoriesStyle = TextStyle(
fontSize: 13,
color: Colors.grey,
);