Files
lunasea/lib/core/ui/text/header.dart
Jagandeep Brar f7807ed762 [Release] v4.2.0+40200001 (#287)
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
2020-12-22 08:46:25 -06:00

56 lines
1.8 KiB
Dart

import 'package:flutter/material.dart';
import 'package:lunasea/core.dart';
class LSHeader extends StatelessWidget {
final String text;
final String subtitle;
LSHeader({
@required this.text,
this.subtitle,
});
@override
Widget build(BuildContext context) => Padding(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
text.toUpperCase(),
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: Constants.UI_FONT_SIZE_HEADER,
color: Colors.white,
),
),
Padding(
child: Container(
height: 2.0,
width: 48.0,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(Constants.UI_BORDER_RADIUS),
color: LunaColours.accent,
),
),
padding: EdgeInsets.only(
top: 4.0,
left: 1.0,
bottom: subtitle != null
? 6.0
: 0.0,
),
),
if(subtitle != null) Text(
subtitle,
style: TextStyle(
fontSize: Constants.UI_FONT_SIZE_SUBHEADER,
color: Colors.white70,
fontWeight: FontWeight.w300,
),
),
],
),
padding: EdgeInsets.fromLTRB(12.0, 6.0, 12.0, 8.0),
);
}