Files
lunasea/lib/modules/sabnzbd/widgets/history_hide_button.dart
Jagandeep Brar d4bd52832f (feat): [Radarr] Ability to view and manage the queue (#414)
* (queue): Ability to view basic queue, delete queue record
* (fix): [UI] Show mouse cursor on ListTile when onTap or onLongPress are not null
* (fix): [UI] Fix height/width of sorting/filtering buttons, ensure consistent fixed-height for input bars
* (fix): [Lists] Remove default drag handles from ReorderableListView
* (fix): Further safe-guarded with platform checks
* (fix): Hide settings options on incompatible platforms
* (chore): Update CHANGELOG.md
* (fix): Switch from package_info to package_info_plus to support MacOS and other platforms
* (chore): Update packages
* (chore): Update Podfile
* (tweak): [Icons] Add font_awesome_flutter, change Icon() usages to FaIcon() to prepare
* (tweak): [Sonarr/Queue] Utilize a cleaner messages dialog view
* (feat): [Radarr/Queue] Add movie name and quality profile to collapsed tile
* (fix): [UI/AppBar] Back button was top-left aligned instead of centered
* (feat): [Icons] Add FontAwesome Pro icons
* (tweak): [Icons] Rollback to FontAwesome 5
* (tweak): [Icons] Rollback to FontAwesome 5
* (fix): [Icons] Revert back to system icons for now
* (fix): [Icons] Revert from FaIcon to Icon
* (tweak): [UI/Expandable Tile] Show two buttons per line, wrapping to a new line when necessary
* (feat): [Radarr] Queue implementation finished
* (fix): [Queue] Safe-guard some data model usages
* (chore): Update CHANGELOG.md
2021-04-09 11:13:16 -05:00

35 lines
1.1 KiB
Dart

import 'package:flutter/material.dart';
import 'package:lunasea/core.dart';
import 'package:lunasea/modules/sabnzbd.dart';
class SABnzbdHistoryHideButton extends StatefulWidget {
final ScrollController controller;
SABnzbdHistoryHideButton({
Key key,
@required this.controller,
}): super(key: key);
@override
State<SABnzbdHistoryHideButton> createState() => _State();
}
class _State extends State<SABnzbdHistoryHideButton> {
@override
Widget build(BuildContext context) => LunaCard(
context: context,
child: Consumer<SABnzbdState>(
builder: (context, model, widget) => LunaIconButton(
icon: model.historyHideFailed
? Icons.visibility_off
: Icons.visibility,
onPressed: () => model.historyHideFailed = !model.historyHideFailed,
),
),
height: LunaTextInputBar.appBarInnerHeight,
width: LunaTextInputBar.appBarInnerHeight,
margin: EdgeInsets.only(left: 12.0),
color: Theme.of(context).canvasColor,
);
}