-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
52 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,39 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:phosphor_flutter/phosphor_flutter.dart'; | ||
|
||
// A list of all available icons | ||
class UniIcons { | ||
static const calendar = PhosphorIconsDuotone.calendarDots; | ||
static const lecture = PhosphorIconsDuotone.lectern; | ||
static const exam = PhosphorIconsDuotone.exam; | ||
static const course = PhosphorIconsDuotone.certificate; | ||
static const calendar = PhosphorIconsDuotone.calendarDots; | ||
static const courses = PhosphorIconsDuotone.certificate; | ||
static const classes = PhosphorIconsDuotone.usersThree; | ||
static const files = PhosphorIconsDuotone.folderOpen; | ||
static const notebook = PhosphorIconsDuotone.notebook; | ||
static const email = PhosphorIconsDuotone.paperPlaneTilt; | ||
static const location = PhosphorIconsDuotone.mapPin; | ||
static const clock = PhosphorIconsDuotone.clock; | ||
static const calendarBlank = PhosphorIconsDuotone.calendarBlank; | ||
static const mapPin = PhosphorIconsDuotone.mapPin; | ||
static const eyeVisible = PhosphorIconsDuotone.eye; | ||
static const eyeHidden = PhosphorIconsDuotone.eyeSlash; | ||
} | ||
|
||
// The same as default Icon class from material.dart but allowing to use PhosphorIcons duotone icons | ||
class UniIcon extends PhosphorIcon { | ||
const UniIcon( | ||
IconData icon, { | ||
super.key, | ||
double size = 24, | ||
Color? color, | ||
String? semanticLabel, | ||
TextDirection? textDirection, | ||
}) : super( | ||
icon, | ||
size: size, | ||
color: color, | ||
semanticLabel: semanticLabel, | ||
textDirection: textDirection, | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters