我遇到的问题是,日历视图getter month似乎不存在,即使getter出现在android studio autofill中.我重新安装了包syncfusion包,但我似乎不明白为什么CalendarView没有getter.需要明确的是,软件包已成功安装.我似乎在网上找不到其他有这个问题的人.谢谢你的帮助,这是代码.
import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_calendar/calendar.dart';
class CalendarView extends StatelessWidget {
const CalendarView({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.grey.shade400,
appBar: AppBar(
backgroundColor: Colors.blueAccent,
title: const Text('Settings',
style: TextStyle(
color: Colors.white
),
)
),
body: SfCalendar(
view: CalendarView.month,
),
);
}
}