You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
843 B
33 lines
843 B
import 'package:flutter/material.dart';
|
|
|
|
import '../l10n/l10n.dart';
|
|
|
|
class UnreadDivider extends StatelessWidget {
|
|
const UnreadDivider({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final color = Theme.of(context).colorScheme.primary;
|
|
return Padding(
|
|
padding: const EdgeInsets.symmetric(vertical: 8),
|
|
child: Row(
|
|
children: [
|
|
Expanded(child: Divider(color: color)),
|
|
Padding(
|
|
padding: const EdgeInsets.symmetric(horizontal: 8),
|
|
child: Text(
|
|
context.l10n.chat_newMessages,
|
|
style: TextStyle(
|
|
color: color,
|
|
fontSize: 12,
|
|
fontWeight: FontWeight.w500,
|
|
),
|
|
),
|
|
),
|
|
Expanded(child: Divider(color: color)),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|