pikapika/lib/screens/components/ComicDescriptionCard.dart

36 lines
780 B
Dart

import 'package:flutter/material.dart';
// 漫画的说明
class ComicDescriptionCard extends StatelessWidget {
final String description;
const ComicDescriptionCard({Key? key, required this.description})
: super(key: key);
@override
Widget build(BuildContext context) {
var theme = Theme.of(context);
return Container(
padding: const EdgeInsets.only(
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,
);