parent
1611fa0aac
commit
e729683abe
5 changed files with 30 additions and 59 deletions
@ -1,33 +0,0 @@ |
||||
import 'package:flutter/material.dart'; |
||||
|
||||
class SimpleDialogItem extends StatelessWidget { |
||||
const SimpleDialogItem({ |
||||
required this.icon, |
||||
required this.color, |
||||
required this.text, |
||||
required this.onPressed, |
||||
super.key, |
||||
}); |
||||
|
||||
final IconData icon; |
||||
final Color color; |
||||
final String text; |
||||
final VoidCallback onPressed; |
||||
|
||||
@override |
||||
Widget build(BuildContext context) { |
||||
return SimpleDialogOption( |
||||
onPressed: onPressed, |
||||
child: Row( |
||||
children: [ |
||||
Icon(icon, size: 36, color: color), |
||||
Padding( |
||||
padding: const EdgeInsetsDirectional.only(start: 16), |
||||
child: |
||||
Text(text, style: const TextStyle(fontWeight: FontWeight.bold)), |
||||
), |
||||
], |
||||
), |
||||
); |
||||
} |
||||
} |
Loading…
Reference in new issue