This repository has been archived by the owner on Jan 17, 2025. It is now read-only.
forked from orz12/PiliPalaX
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: sponsorblock: post segments (#9)
Signed-off-by: bggRGjQaUbCoE <[email protected]>
- Loading branch information
1 parent
c0879ee
commit f25eb7b
Showing
5 changed files
with
476 additions
and
38 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
Widget iconButton({ | ||
required BuildContext context, | ||
String? tooltip, | ||
required IconData icon, | ||
required VoidCallback? onPressed, | ||
double size = 36, | ||
}) { | ||
return SizedBox( | ||
width: size, | ||
height: size, | ||
child: IconButton( | ||
tooltip: tooltip, | ||
onPressed: onPressed, | ||
icon: Icon( | ||
icon, | ||
size: size / 2, | ||
color: Theme.of(context).colorScheme.onSecondaryContainer, | ||
), | ||
style: IconButton.styleFrom( | ||
padding: EdgeInsets.all(0), | ||
backgroundColor: Theme.of(context).colorScheme.secondaryContainer, | ||
), | ||
), | ||
); | ||
} |
Oops, something went wrong.