mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 15:24:35 +01:00
27 lines
487 B
Dart
27 lines
487 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../../data/res/menu.dart';
|
|
import '../../generated/l10n.dart';
|
|
|
|
class DropdownBtnItem {
|
|
final String text;
|
|
final IconData icon;
|
|
|
|
const DropdownBtnItem({
|
|
required this.text,
|
|
required this.icon,
|
|
});
|
|
|
|
Widget build(S s) => Row(
|
|
children: [
|
|
Icon(icon),
|
|
const SizedBox(
|
|
width: 10,
|
|
),
|
|
Text(
|
|
getDropdownBtnText(s, text),
|
|
),
|
|
],
|
|
);
|
|
}
|