mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-07 09:16:44 +10:00
f4cca2fb1d
- Created a new ExportOptions.plist file to define export settings for app distribution. - Configured the plist with method, team ID, signing style, symbol upload option, and destination.
32 lines
825 B
Dart
32 lines
825 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../theme/mesh_theme.dart';
|
|
|
|
class UnreadBadge extends StatelessWidget {
|
|
final int count;
|
|
|
|
const UnreadBadge({super.key, required this.count});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final display = count > 9999 ? '9999+' : count.toString();
|
|
return Container(
|
|
constraints: const BoxConstraints(minWidth: 20),
|
|
padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2),
|
|
alignment: Alignment.center,
|
|
decoration: BoxDecoration(
|
|
color: MeshPalette.alert,
|
|
borderRadius: BorderRadius.circular(MeshRadii.pill),
|
|
),
|
|
child: Text(
|
|
display,
|
|
style: MeshTheme.mono(
|
|
fontSize: 11,
|
|
fontWeight: FontWeight.w700,
|
|
color: Colors.white,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|