dartlangeditorflutterflutter-appsflutter-examplesflutter-packageflutter-widgetquillquill-deltaquilljsreactquillrich-textrich-text-editorwysiwygwysiwyg-editor
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.
34 lines
793 B
34 lines
793 B
3 years ago
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
class SimpleDialogItem extends StatelessWidget {
|
||
|
const SimpleDialogItem(
|
||
|
{required this.icon,
|
||
|
required this.color,
|
||
|
required this.text,
|
||
|
required this.onPressed,
|
||
|
Key? key})
|
||
|
: super(key: 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)),
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|