fluffychat/lib/widgets/fluffy_banner.dart

11 lines
281 B
Dart
Raw Normal View History

2021-04-09 14:56:23 +02:00
import 'package:flutter/material.dart';
class FluffyBanner extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Image.asset(Theme.of(context).brightness == Brightness.dark
? 'assets/banner_dark.png'
: 'assets/banner.png');
}
}