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,
|
||||
|
||||
@@ -143,8 +143,9 @@ class _FAQListPageState extends State<FAQListPage>
|
||||
: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
FlatButton(
|
||||
color: primaryColor,
|
||||
TextButton(
|
||||
style: TextButton.styleFrom(backgroundColor: primaryColor),
|
||||
// color: primaryColor,
|
||||
onPressed: () => _selectLinkPage(linkPage),
|
||||
child: LocalText(context, "", text: text, color: Colors.white),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user