mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-18 07:44:26 +01:00
opt.: migrate fl_lib
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
abstract class PopMenu {
|
||||
static PopupMenuItem<T> build<T>(T t, IconData icon, String text) {
|
||||
static PopupMenuItem<T> build<T>(
|
||||
T t,
|
||||
IconData icon,
|
||||
String text, {
|
||||
double? iconSize,
|
||||
}) {
|
||||
return PopupMenuItem<T>(
|
||||
value: t,
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(icon),
|
||||
const SizedBox(
|
||||
width: 10,
|
||||
),
|
||||
Icon(icon, size: iconSize),
|
||||
const SizedBox(width: 10),
|
||||
Text(text),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user