IconData will be final soon

This commit is contained in:
Fabian Freund
2026-03-12 04:38:39 +01:00
parent 2d4fbc633e
commit efb0aac5e2
2 changed files with 95 additions and 73 deletions
+6 -22
View File
@@ -19,28 +19,12 @@
*/
import 'package:flutter/widgets.dart';
enum WebLibreIcons implements IconData {
privateTab(0xEA01),
tabOptions(0xEA02),
tabType(0xEA03);
abstract class WebLibreIcons {
static const String _fontFamily = 'WebLibre';
const WebLibreIcons(this.codePoint);
static const IconData privateTab = IconData(0xEA01, fontFamily: _fontFamily);
static const IconData tabOptions = IconData(0xEA02, fontFamily: _fontFamily);
static const IconData tabType = IconData(0xEA03, fontFamily: _fontFamily);
@override
final int codePoint;
@override
String get fontFamily => 'WebLibre';
@override
List<String>? get fontFamilyFallback => null;
@override
String? get fontPackage => null;
@override
bool get matchTextDirection => false;
@override
String toString() => 'WebLibreIcons.$name';
static const List<IconData> values = [privateTab, tabOptions, tabType];
}