fluffychat/lib/widgets/fluffy_banner.dart
2021-10-14 18:09:30 +02:00

13 lines
333 B
Dart

import 'package:flutter/material.dart';
class FluffyBanner extends StatelessWidget {
const FluffyBanner({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Image.asset(Theme.of(context).brightness == Brightness.dark
? 'assets/banner_dark.png'
: 'assets/banner.png');
}
}