import 'package:flutter/material.dart'; class BottomSheetComponent extends StatelessWidget { final bool isSplash; const BottomSheetComponent({this.isSplash=false, Key? key}) : super(key: key); @override Widget build(BuildContext context) { return SafeArea( child: Container( decoration: BoxDecoration( border: Border.all(width: 0, color: isSplash ? Theme.of(context).highlightColor : Colors.white), color: isSplash ? Theme.of(context).highlightColor : Colors.white, ), child: SizedBox( height: 50, width: MediaQuery.of(context).size.width, child: Row( mainAxisSize: MainAxisSize.max, mainAxisAlignment: MainAxisAlignment.end, children: [ Image.asset("assets/icons/logo_siabes.png", width: 140, color: isSplash ? Colors.white : Theme.of(context).primaryColor, height: 33,) ], ), ), ), ); } }