Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

Commit

Permalink
feat: sponsorblock: post segments (#9)
Browse files Browse the repository at this point in the history
Signed-off-by: bggRGjQaUbCoE <[email protected]>
  • Loading branch information
bggRGjQaUbCoE committed Nov 25, 2024
1 parent c0879ee commit f25eb7b
Show file tree
Hide file tree
Showing 5 changed files with 476 additions and 38 deletions.
27 changes: 27 additions & 0 deletions lib/common/widgets/icon_button.dart
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,
),
),
);
}
Loading

0 comments on commit f25eb7b

Please sign in to comment.