Merge pull request #192 from yaso-meth/NEW--add-Icons

NEW--add-Icons
This commit is contained in:
yaso-meth
2025-06-03 10:21:01 +02:00
committed by GitHub
5 changed files with 47 additions and 8 deletions

View File

@@ -1,10 +1,10 @@
@font-face { @font-face {
font-family: 'Mih_Icons'; font-family: 'Mih_Icons';
src: url('fonts/Mih_Icons.eot?7reovg'); src: url('fonts/Mih_Icons.eot?kmk862');
src: url('fonts/Mih_Icons.eot?7reovg#iefix') format('embedded-opentype'), src: url('fonts/Mih_Icons.eot?kmk862#iefix') format('embedded-opentype'),
url('fonts/Mih_Icons.ttf?7reovg') format('truetype'), url('fonts/Mih_Icons.ttf?kmk862') format('truetype'),
url('fonts/Mih_Icons.woff?7reovg') format('woff'), url('fonts/Mih_Icons.woff?kmk862') format('woff'),
url('fonts/Mih_Icons.svg?7reovg#Mih_Icons') format('svg'); url('fonts/Mih_Icons.svg?kmk862#Mih_Icons') format('svg');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
font-display: block; font-display: block;
@@ -26,6 +26,10 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.icon-personal_profile:before {
content: "\e90f";
}
.icon-notifications:before { .icon-notifications:before {
content: "\e90e"; content: "\e90e";
} }

View File

@@ -52,4 +52,7 @@ class MihIcons {
static const IconData notifications = static const IconData notifications =
IconData(0xe90e, fontFamily: _mihFontFam, fontPackage: _mihFontPkg); IconData(0xe90e, fontFamily: _mihFontFam, fontPackage: _mihFontPkg);
static const IconData personalProfile =
IconData(0xe90f, fontFamily: _mihFontFam, fontPackage: _mihFontPkg);
} }

View File

@@ -205,7 +205,23 @@ class _MihBusinessHomeState extends State<MihBusinessHome>
return MihSingleChildScroll( return MihSingleChildScroll(
child: Column( child: Column(
children: [ children: [
const SizedBox(height: 10), // Icon(
// MihIcons.mihLogo,
// size: width / 2,
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
// ),
// const SizedBox(height: 10),
// Text(
// // "Welcome, ${widget.signedInUser.fname}!",
// "Mzansi Innovation Hub",
// textAlign: TextAlign.center,
// style: TextStyle(
// fontSize: 30,
// fontWeight: FontWeight.bold,
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
// ),
// ),
// const SizedBox(height: 20),
Padding( Padding(
padding: EdgeInsets.symmetric(horizontal: width / 20), padding: EdgeInsets.symmetric(horizontal: width / 20),
child: MihSearchBar( child: MihSearchBar(

View File

@@ -248,7 +248,23 @@ class _MihPersonalHomeState extends State<MihPersonalHome>
return MihSingleChildScroll( return MihSingleChildScroll(
child: Column( child: Column(
children: [ children: [
const SizedBox(height: 10), // Icon(
// MihIcons.mihLogo,
// size: 200,
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
// ),
// const SizedBox(height: 10),
// Text(
// // "Welcome, ${widget.signedInUser.fname}!",
// "Mzansi Innovation Hub",
// textAlign: TextAlign.center,
// style: TextStyle(
// fontSize: 30,
// fontWeight: FontWeight.bold,
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
// ),
// ),
// const SizedBox(height: 20),
Padding( Padding(
padding: EdgeInsets.symmetric(horizontal: width / 20), padding: EdgeInsets.symmetric(horizontal: width / 20),
child: MihSearchBar( child: MihSearchBar(
@@ -274,7 +290,7 @@ class _MihPersonalHomeState extends State<MihPersonalHome>
searchFocusNode: _searchFocusNode, searchFocusNode: _searchFocusNode,
), ),
), ),
const SizedBox(height: 10), const SizedBox(height: 20),
ValueListenableBuilder( ValueListenableBuilder(
valueListenable: searchPackageName, valueListenable: searchPackageName,
builder: (context, value, child) { builder: (context, value, child) {