使用if&和内置公式在特定时间运行的自定义函数

问题描述

import 'package:Flutter/material.dart';
import 'package:after_init/after_init.dart';

void main() {
  runApp(
    MaterialApp(
      home: Scaffold(
        body: Example(),),);
}

class Example extends StatefulWidget {
  @override
  _ExampleState createState() => _ExampleState();
}

class _ExampleState extends State<Example> with AfterInitMixin<Example> {
  Size size;

  /// This gets called first,as usual.
  @override
  void initState() {
    super.initState();
    // Your code here
  }

  /// This gets called after initState(),only once.
  /// Safely access inherited widgets here.
  @override
  void didInitState() {
    // No need to call super.didInitState().
    // setState() is not required because build() will automatically be called by Flutter.
    size = MediaQuery.of(context).size;
  }

  /// This gets called after didInitState().
  /// And anytime the widget's dependencies change,as usual.
  @override
  void didChangeDependencies() {
    super.didChangeDependencies();
    // Your code here
  }

  /// Finally this gets called,as usual.
  @override
  Widget build(BuildContext context) {
    return Center(
      child: Text(size.toString()),);
  }
}

我有这个功能,可以在特定时间运行自定义=IF(AND(Now() >= rmdate("2020-10-05 01:19:00"),Now() <= rdate("2020-10-05 01:19:00")),remindercore("test","nine","+9212345678","Farooq Hospital","2020-10-05 23:30:00"),"Pending") 。我们正在通过Webhook添加数据。因此,每次输入数据。该语句变为待处理,并且每当发生特定时间时,就会触发remidercore函数

但是运行此命令时,我会遇到function remindercore()错误。但是,当我单击它并按Enter时,它运行良好。我正在自动执行操作,无法手动按Enter键。有什么解决办法吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)