| 1 | import 'package:cake_wallet/themes/core/custom_theme_colors.dart'; |
| 2 | import 'package:flutter/material.dart'; |
| 3 | |
| 4 | class NodeIndicator extends StatelessWidget { |
| 5 | const NodeIndicator({this.isLive = false}); |
| 6 | |
| 7 | final bool isLive; |
| 8 | |
| 9 | @override |
| 10 | Widget build(BuildContext context) { |
| 11 | return Container( |
| 12 | width: 12.0, |
| 13 | height: 12.0, |
| 14 | decoration: BoxDecoration( |
| 15 | shape: BoxShape.circle, |
| 16 | color: isLive ? CustomThemeColors.syncGreen : Theme.of(context).colorScheme.errorContainer, |
| 17 | ), |
| 18 | ); |
| 19 | } |
| 20 | } |