mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-30 20:24:25 +00:00
NEW - [Settings/Modules] Add an information/help button with module descriptions and links TWEAKS - [Radarr] Always show the amount of days content will be available instead of limiting it to only content in the next 30 days - [Settings] Moved "Backup & Restore" and "Logs" to "System" section - [Settings] Merged "Customization" and "Modules" sections into "Configuration" - [Settings/Sonarr] Removed the need to enable Sonarr to test the connection - [Settings/Tautulli] Removed the need to enable Tautulli to test the connection FIXES - [IAPs] Ensure all IAPs are marked as "consumed" - [Flutter] Updated packages - [Logging] Updated Sentry to v4 framework to improve capturing fatal/crashing bugs - [Settings/Logs] Hide exception and stack trace buttons when an error is not available - [Sonarr/History] Fixed history fetching the oldest entries, not the newest - [State] Correctly clear state when clearing LunaSea's configuration - [Tautulli/Activity] Fixed consistency of hardware transcoding indicator compared to the web UI - [UI/Divider] Fix consistency of divider width across regular and AMOLED dark theme
48 lines
1.7 KiB
Dart
48 lines
1.7 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:lunasea/core.dart';
|
|
|
|
// ignore: non_constant_identifier_names
|
|
Widget LSAppBarDropdown({
|
|
@required BuildContext context,
|
|
@required String title,
|
|
@required List<String> profiles,
|
|
List<Widget> actions
|
|
}) => profiles != null && profiles.length < 2
|
|
? LunaAppBar(context: context, title: title, actions: actions, hideLeading: true)
|
|
: AppBar(
|
|
title: PopupMenuButton<String>(
|
|
shape: LunaDatabaseValue.THEME_AMOLED.data && LunaDatabaseValue.THEME_AMOLED_BORDER.data
|
|
? LSRoundedShapeWithBorder()
|
|
: LSRoundedShape(),
|
|
child: Wrap(
|
|
direction: Axis.horizontal,
|
|
children: [
|
|
Text(
|
|
title,
|
|
style: TextStyle(
|
|
fontSize: Constants.UI_FONT_SIZE_HEADER,
|
|
),
|
|
),
|
|
LSIcon(
|
|
icon: Icons.arrow_drop_down,
|
|
),
|
|
],
|
|
),
|
|
onSelected: (result) => LunaProfile().safelyChangeProfiles(context, result),
|
|
itemBuilder: (context) {
|
|
return <PopupMenuEntry<String>>[for(String profile in profiles) PopupMenuItem<String>(
|
|
value: profile,
|
|
child: Text(
|
|
profile,
|
|
style: TextStyle(
|
|
fontSize: Constants.UI_FONT_SIZE_SUBTITLE,
|
|
),
|
|
),
|
|
)];
|
|
},
|
|
),
|
|
centerTitle: false,
|
|
elevation: 0,
|
|
actions: actions,
|
|
);
|