Complete refactoring SFM App Source Code
This commit is contained in:
13
lib/product/constant/icon/icon_constants.dart
Normal file
13
lib/product/constant/icon/icon_constants.dart
Normal file
@@ -0,0 +1,13 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class IconConstants {
|
||||
IconConstants._init();
|
||||
static IconConstants? _instance;
|
||||
static IconConstants get instance => _instance ??= IconConstants._init();
|
||||
|
||||
String get logo => getIcon("");
|
||||
|
||||
String getIcon(String name) => "assets/icons/$name.png";
|
||||
|
||||
Icon getMaterialIcon(IconData icon) => Icon(icon);
|
||||
}
|
||||
Reference in New Issue
Block a user