-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
9e05310
commit 8ff149f
Showing
7 changed files
with
202 additions
and
142 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import 'build_context_x.dart'; | ||
import 'constants.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class FootNote extends StatelessWidget { | ||
const FootNote({ | ||
super.key, | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Row( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: [ | ||
Text( | ||
'$kAppTitle · 2024', | ||
style: context.theme.textTheme.labelSmall | ||
?.copyWith(color: Colors.white.withOpacity(0.7)), | ||
), | ||
], | ||
); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import 'constants.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:shimmer/shimmer.dart'; | ||
|
||
class PlatedIcon extends StatelessWidget { | ||
const PlatedIcon({ | ||
super.key, | ||
required this.icon, | ||
this.shape, | ||
this.onTap, | ||
this.iconSize = 70.0, | ||
}); | ||
|
||
final IconData icon; | ||
final BoxShape? shape; | ||
final VoidCallback? onTap; | ||
final double iconSize; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Opacity( | ||
opacity: 0.7, | ||
child: Shimmer.fromColors( | ||
baseColor: kBaseColor, | ||
highlightColor: kHighlightColor, | ||
child: InkWell( | ||
onTap: onTap, | ||
borderRadius: | ||
BorderRadius.circular(shape == BoxShape.circle ? iconSize : 10), | ||
child: Container( | ||
padding: EdgeInsets.all(iconSize / 5.8), | ||
decoration: BoxDecoration( | ||
shape: shape ?? BoxShape.rectangle, | ||
borderRadius: | ||
shape == BoxShape.circle ? null : BorderRadius.circular(10), | ||
border: const Border.fromBorderSide( | ||
BorderSide(width: 1, color: Colors.white), | ||
), | ||
), | ||
child: Icon( | ||
icon, | ||
size: iconSize, | ||
), | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} |
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
Oops, something went wrong.