Files
lunasea/lib/core/ui/highlighted_node.dart
Jagandeep Brar bb725ce056 fix(uiux): Major reimplementation of tiles, refactoring and tightening of UI (#525)
* fix(database): Use native extension instead of describeEnum
* new(sonarr): [Catalogue] Previous airing sorting options
* splash: Rebuild Android & iOS splash screens
* changelog: Refactor changelog sheet
* Continued WIP Polish of UI
* chore: Reintegrate pods
* calendar: Added second line for Lidarr/Radarr entries
* settings: Show quick actions information as banner block
* lidarr: Add support for monitoring options on add, posters in result list
* uiux: Fade edges of scrollable text
* drawer: Restyle header
* Remove redundant body texts in edit/add content
* macos: Set window size & alignment
* settings: Add description banner block for profiles
2021-12-22 13:07:28 -06:00

40 lines
976 B
Dart

import 'package:flutter/material.dart';
import 'package:lunasea/core.dart';
class LunaHighlightedNode extends StatelessWidget {
final Color backgroundColor;
final Color textColor;
final String text;
LunaHighlightedNode({
Key key,
@required this.text,
this.backgroundColor = LunaColours.accent,
this.textColor = Colors.white,
}) : super(key: key) {
assert(text != null);
}
@override
Widget build(BuildContext context) {
return Container(
child: Padding(
child: Text(
text,
maxLines: 1,
style: TextStyle(
fontSize: LunaUI.FONT_SIZE_H4,
color: textColor,
fontWeight: LunaUI.FONT_WEIGHT_BOLD,
),
),
padding: const EdgeInsets.symmetric(vertical: 4.0, horizontal: 8.0),
),
decoration: BoxDecoration(
color: backgroundColor,
borderRadius: BorderRadius.circular(LunaUI.BORDER_RADIUS),
),
);
}
}