check null safety
This commit is contained in:
@@ -13,7 +13,7 @@ class BottomWidgets extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
var pkgInfo = Provider.of<MainModel>(context).packageInfo;
|
||||
final versionBox = Text(
|
||||
"v${pkgInfo.version}+${pkgInfo.buildNumber}",
|
||||
"v${pkgInfo?.version}+${pkgInfo?.buildNumber}",
|
||||
style: TextStyle(color: Colors.white30),
|
||||
);
|
||||
return Column(
|
||||
|
||||
Reference in New Issue
Block a user