upgrade packages

This commit is contained in:
tzw
2024-01-09 13:11:22 +06:30
parent cbd8ddad08
commit 3e1c61a9f6
32 changed files with 193 additions and 150 deletions

View File

@@ -92,10 +92,10 @@ class _FAQEditorState extends State<FAQEditor> {
color: primaryColor,
),
onChanged: (String? newValue) {
if(newValue != null)
setState(() {
_pageLink = newValue;
});
if (newValue != null)
setState(() {
_pageLink = newValue;
});
},
items: <String>[
info,
@@ -197,10 +197,7 @@ class _FAQEditorState extends State<FAQEditor> {
_isLoading = true;
});
try {
int sn = int.parse(
_sn.text,
onError: (source) => throw Exception("Invalid number"),
);
int sn = int.parse(_sn.text);
FAQModel faqModel = Provider.of<FAQModel>(context, listen: false);
FAQ _faq = FAQ(
sn: sn,