TechieBlossom / stadia_app_concept

103 stars 52 forks source link

Another exception was thrown: NoSuchMethodError: The method '*' was called on null. #2

Open blazefluz opened 5 years ago

blazefluz commented 5 years ago

class GameProgressWidget extends StatelessWidget {

final double gameProgress, screenWidth;

const GameProgressWidget({Key key, this.gameProgress, this.screenWidth }) : super(key: key);

@override Widget build(BuildContext context) { final width = screenWidth * 0.3 - 32; return Container( width: width, height: 10, decoration: BoxDecoration( borderRadius: BorderRadius.all(Radius.circular(4)), border: Border.all(color: tertiaryTextColor, width: 1), ), ); } }