upgrade packages
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user