import 'package:flutter/material.dart'; class MyToDoIcon extends StatelessWidget { final Icon _icon; const MyToDoIcon(this._icon, {super.key}); @override Widget build(BuildContext context) { return Stack(children: [ _icon, const Positioned( // draw a red marble top: 0.0, right: 0.0, child: Icon(Icons.brightness_1, size: 10.0, color: Colors.redAccent), ) ]); } }