29 lines
711 B
Dart
29 lines
711 B
Dart
|
|
// Mock data must look like mock data: on the surface of every page, not in a menu.
|
||
|
|
|
||
|
|
import 'package:flutter/material.dart';
|
||
|
|
|
||
|
|
import '../theme/palette.dart';
|
||
|
|
|
||
|
|
class MockBanner extends StatelessWidget {
|
||
|
|
const MockBanner({super.key});
|
||
|
|
|
||
|
|
@override
|
||
|
|
Widget build(BuildContext context) {
|
||
|
|
final p = AppTheme.of(context);
|
||
|
|
return Container(
|
||
|
|
color: p.caution,
|
||
|
|
padding: const EdgeInsets.symmetric(vertical: 6),
|
||
|
|
child: Text(
|
||
|
|
'MOCK DATA — NOT FROM THE CAR',
|
||
|
|
textAlign: TextAlign.center,
|
||
|
|
style: TextStyle(
|
||
|
|
color: p.onFill(p.caution),
|
||
|
|
fontWeight: FontWeight.w900,
|
||
|
|
fontSize: 20,
|
||
|
|
letterSpacing: 2,
|
||
|
|
),
|
||
|
|
),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|