我想在指定的时间每天显示通知,并且我已经实现了显示每日通知的代码,但是在我想打电话时没有显示通知是行不通的。我正在使用这个插件链接
当我运行应用程序时,我在控制台上收到此警告,这是屏幕截图

我的代码实现是错误的吗?这是代码
import 'package:flutter/material.dart';
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
import 'dart:async';
class App extends StatefulWidget {
@override
_AppState createState() => _AppState();
}
class _AppState extends State<App> {
FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin = new FlutterLocalNotificationsPlugin();
showNotification() async{
var time = new Time(3,51, 0);//at 3.30
var androidPlatformChannelSpecifics =
new AndroidNotificationDetails('repeatDailyAtTime channel id',
'repeatDailyAtTime channel name', 'repeatDailyAtTime description');
var iOSPlatformChannelSpecifics =
new IOSNotificationDetails();
var platformChannelSpecifics = new NotificationDetails(
androidPlatformChannelSpecifics, iOSPlatformChannelSpecifics);
await flutterLocalNotificationsPlugin.showDailyAtTime(
0,
'Teer Result Time',
'Open The App and check for the Result',
time,
platformChannelSpecifics); …Run Code Online (Sandbox Code Playgroud) 当我创建一个下拉按钮小部件时,我得到了这个错误,说RenderFlex溢出了右侧的无限像素.源代码是:
import 'package:flutter/material.dart';
class test extends StatefulWidget {
@override
_testState createState() => _testState();
}
class _testState extends State<test> {
//gender
List<DropdownMenuItem<int>> genderList = [];
void genderLoad(){
genderList.add(new DropdownMenuItem(child: new Text("Male"),value: 1,));
genderList.add(new DropdownMenuItem(child: new Text("Female"),value: 2,));
}
//end of gender
@override
Widget build(BuildContext context) {
genderLoad();
return Scaffold(
body: new Container(
child: new Center(
child: new DropdownButton(items: genderList, onChanged: null),
),
),
);
}
}
Run Code Online (Sandbox Code Playgroud)
在我构建程序后,我没有在应用程序上看到任何DropDownButton,而是在控制台上收到错误消息.以下是错误消息:
执行热重启...将文件同步到为x86构建的设备Android SDK ...在5,558ms内重新启动应用程序.
I/flutter (15333): ??? EXCEPTION CAUGHT BY RENDERING LIBRARY ??????????????????????????????????????????????????????????
I/flutter (15333): …Run Code Online (Sandbox Code Playgroud)