mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 04:32:32 +00:00
* [SABnzbd/History] History tiles are now expandable in-line, Stages route * [Packages] Updated packages * [NZBGet/History] History now shown as in-line expandable tiles * [Radarr/Delete] Ability to add to exclusion list * [Radarr/Dialogs] Fix padding around delete movie prompt * [Home/Calendar] Ability to enter search directly from calendar entries * [Lidarr] Ability to enter interactive search from missing page * [Radarr] Ability to enter interactive search from missing & upcoming tiles * [Sonarr] Ability to enter interactive search from missing & upcoming tiles * [Release/TestFlight] v3.1.0+310003
32 lines
743 B
Dart
32 lines
743 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:lunasea/core.dart';
|
|
|
|
class LSIconButton extends StatelessWidget {
|
|
final IconData icon;
|
|
final Color color;
|
|
final Function onPressed;
|
|
final Function onLongPress;
|
|
final double iconSize;
|
|
|
|
LSIconButton({
|
|
@required this.icon,
|
|
this.color = Colors.white,
|
|
this.onPressed,
|
|
this.onLongPress,
|
|
this.iconSize = 24.0,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) => InkWell(
|
|
child: IconButton(
|
|
icon: LSIcon(
|
|
icon: icon,
|
|
color: color,
|
|
),
|
|
iconSize: iconSize,
|
|
onPressed: onPressed,
|
|
),
|
|
onLongPress: onLongPress,
|
|
);
|
|
}
|