-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from moesaid/stage
0.0.6
- Loading branch information
Showing
14 changed files
with
361 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
on: | ||
workflow_dispatch | ||
# push: | ||
# branches: [main] | ||
# workflow_dispatch | ||
push: | ||
branches: [main] | ||
|
||
name: Windows | ||
|
||
|
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
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:heroicons/heroicons.dart'; | ||
|
||
class BuildAppbarPlatformButton extends StatelessWidget { | ||
final bool hover; | ||
final double size; | ||
final VoidCallback? onTap; | ||
final Color beforeHoverColor, afterHoverColor; | ||
final HeroIcons icon; | ||
const BuildAppbarPlatformButton({ | ||
super.key, | ||
required this.hover, | ||
required this.size, | ||
this.onTap, | ||
required this.beforeHoverColor, | ||
required this.afterHoverColor, | ||
required this.icon, | ||
}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return InkWell( | ||
onTap: onTap, | ||
child: AnimatedContainer( | ||
height: size, | ||
width: size, | ||
duration: const Duration(milliseconds: 100), | ||
decoration: BoxDecoration( | ||
shape: BoxShape.circle, | ||
color: hover ? afterHoverColor : beforeHoverColor, | ||
), | ||
child: Visibility( | ||
visible: hover, | ||
child: HeroIcon( | ||
icon, | ||
size: 10, | ||
color: Colors.black54, | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} |
Oops, something went wrong.