null safety

This commit is contained in:
phyothandar
2021-09-10 15:22:11 +06:30
parent 51a5fe0740
commit c90661b262
24 changed files with 194 additions and 193 deletions

View File

@@ -35,7 +35,7 @@ class _MarketEditorState extends State<MarketEditor> {
children: <Widget>[
Expanded(
child: new Text(
p.name,
p.name ?? "",
style: TextStyle(
fontSize: 15.0,
),
@@ -117,7 +117,7 @@ class _MarketEditorState extends State<MarketEditor> {
});
MarketModel marketModel = Provider.of<MarketModel>(context, listen: false);
try {
await marketModel.deleteMarket(market.id);
await marketModel.deleteMarket(market.id!);
} catch (e) {
showMsgDialog(context, "Error", e.toString());
} finally {