Original from: Dominik Wawrzonek <dwawrzonek@ics.com>
Bug-AGL: SPEC-4971
Change-Id: I95f23d4f475aa7db82b6d34f2fc62e9f10092a75
Signed-off-by: Lisandro Pérez Meyer <lpmeyer@ics.com>
const maxSpeed = 240.0;
const maxRpm = 8000;
final GlobalKey<ScaffoldState> homeScaffoldKey = GlobalKey();
+const debugDisplay = bool.fromEnvironment('DEBUG_DISPLAY');
+const disableBkgAnimation = bool.fromEnvironment('DISABLE_BKG_ANIMATION');
+
+
void main() async {
WidgetsFlutterBinding.ensureInitialized();
- const debugDisplay = bool.fromEnvironment('DEBUG_DISPLAY');
runApp(DevicePreview(
enabled: debugDisplay,
tools: const [
class _AppButtonState extends State<AppButton> {
@override
Widget build(BuildContext context) {
- Size size = MediaQuery.sizeOf(context);
return Container(
width: 250,
height: 250,
) {
return Consumer(builder: (context, ref, child) {
final state = ref.read(appProvider);
- const disableBkgAnimation = bool.fromEnvironment('DISABLE_BKG_ANIMATION');
- if(disableBkgAnimation)
- print('Background animation: disabled');
+ if (disableBkgAnimation) {
+ debugPrint('Background animation: disabled');
+ }
return Scaffold(
key: homeScaffoldKey,
extendBody: true,