mirror of https://github.com/flutter/pinball.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
700 B
24 lines
700 B
import 'package:flutter/material.dart';
|
|
import 'package:pinball_ui/pinball_ui.dart';
|
|
|
|
/// {@template crt_background}
|
|
/// [BoxDecoration] that provides a CRT-like background effect.
|
|
/// {@endtemplate}
|
|
class CrtBackground extends BoxDecoration {
|
|
/// {@macro crt_background}
|
|
const CrtBackground()
|
|
: super(
|
|
gradient: const LinearGradient(
|
|
begin: Alignment(1, 0.015),
|
|
stops: [0.0, 0.5, 0.5, 1],
|
|
colors: [
|
|
PinballColors.darkBlue,
|
|
PinballColors.darkBlue,
|
|
PinballColors.crtBackground,
|
|
PinballColors.crtBackground,
|
|
],
|
|
tileMode: TileMode.repeated,
|
|
),
|
|
);
|
|
}
|