mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
22 lines
391 B
Dart
22 lines
391 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
abstract class PopMenu {
|
|
static PopupMenuItem<T> build<T>(
|
|
T t,
|
|
IconData icon,
|
|
String text, {
|
|
double? iconSize,
|
|
}) {
|
|
return PopupMenuItem<T>(
|
|
value: t,
|
|
child: Row(
|
|
children: [
|
|
Icon(icon, size: iconSize),
|
|
const SizedBox(width: 10),
|
|
Text(text),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|