Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/syncfusion_flutter_barcodes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
## Unreleased

**Bugs**
**General**
* Provided th​e Material 3 themes support.

## [20.2.38] - 07/12/2022

**Bugs**
* #FB45676 - Now, the QR code generated for all kinds of the input values with 07 [codeVersion](https://pub.dev/documentation/syncfusion_flutter_barcodes/latest/barcodes/QRCode/codeVersion.html), medium [errorCorrectionLevel](https://pub.dev/documentation/syncfusion_flutter_barcodes/latest/barcodes/QRCode/errorCorrectionLevel.html), and alphaNumeric [inputMode](https://pub.dev/documentation/syncfusion_flutter_barcodes/latest/barcodes/QRCode/inputMode.html) will be scannable.

## [22.1.36] 06/28/2023
Expand Down
3 changes: 0 additions & 3 deletions packages/syncfusion_flutter_barcodes/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
useMaterial3: false,
),
home: Scaffold(
appBar: AppBar(
title: const Text('Barcode Generator Demo'),
Expand Down
2 changes: 1 addition & 1 deletion packages/syncfusion_flutter_barcodes/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: syncfusion_flutter_barcodes
description: Flutter Barcodes generator library is used to generate and display data in the machine-readable, industry-standard 1D and 2D barcodes.
version: 24.1.41
version: 24.2.9
homepage: https://github.com/syncfusion/flutter-widgets/tree/master/packages/syncfusion_flutter_barcodes

environment:
Expand Down
13 changes: 13 additions & 0 deletions packages/syncfusion_flutter_calendar/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## Unreleased

**General**
* Provided th​e Material 3 themes support.

**Bug fixes**
* \#FB50948 - Now, the 'setState() or markNeedsBuild() called during the build' exception will not be thrown when tapping today's button after swiping the `timelineMonth` view.
* \#FB50846 - Now, text size remains consistent when the app state or themes gets changed.

## [24.1.46] - 17/01/2024
**General**
* Upgraded the `intl` package to the latest version 0.19.0.

## [22.2.5]
**Features**
* Provided support to accessibility for builders in the Flutter event calendar.
Expand Down
6 changes: 1 addition & 5 deletions packages/syncfusion_flutter_calendar/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ void main() {
class CalendarApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Calendar Demo',
theme: ThemeData(useMaterial3: false),
home: const MyHomePage(),
);
return const MaterialApp(title: 'Calendar Demo', home: MyHomePage());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Appointment with Diagnosticable {
this.endTimeZone,
this.recurrenceRule,
this.isAllDay = false,
this.notes,
String? notes,
this.location,
this.resourceIds,
this.recurrenceId,
Expand All @@ -85,12 +85,17 @@ class Appointment with Diagnosticable {
this.subject = '',
this.color = Colors.lightBlue,
this.recurrenceExceptionDates,
}) {
}) : notes = notes != null && notes.contains('isOccurrenceAppointment')
? notes.replaceAll('isOccurrenceAppointment', '')
: notes,
_notes = notes {
recurrenceRule = recurrenceId != null ? null : recurrenceRule;
_appointmentType = _getAppointmentType();
id = id ?? hashCode;
}

String? _notes;

/// The start time for an [Appointment] in [SfCalendar].
///
/// Defaults to `DateTime.now()`.
Expand Down Expand Up @@ -937,8 +942,8 @@ class Appointment with Diagnosticable {
if (recurrenceId != null) {
return AppointmentType.changedOccurrence;
} else if (recurrenceRule != null && recurrenceRule!.isNotEmpty) {
if (notes != null && notes!.contains('isOccurrenceAppointment')) {
notes = notes!.replaceAll('isOccurrenceAppointment', '');
if (_notes != null && _notes!.contains('isOccurrenceAppointment')) {
_notes = _notes!.replaceAll('isOccurrenceAppointment', '');
return AppointmentType.occurrence;
}

Expand All @@ -949,7 +954,7 @@ class Appointment with Diagnosticable {

@override
// ignore: avoid_equals_and_hash_code_on_mutable_classes
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ class RecurrenceProperties with Diagnosticable {

@override
// ignore: avoid_equals_and_hash_code_on_mutable_classes
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ class _AgendaViewRenderObject extends CustomCalendarRenderObject {
: themeData.textTheme.bodyMedium!
.copyWith(
color: isLargerScheduleUI &&
calendarTheme.brightness == Brightness.light
themeData.brightness == Brightness.light
? Colors.black87
: Colors.white,
fontSize: 13)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,7 @@ class _AllDayAppointmentRenderObject extends CustomCalendarRenderObject {
appointmentView.startIndex <= index &&
appointmentView.endIndex > index) {
selectionDecoration ??= BoxDecoration(
color: calendarTheme.brightness == Brightness.light
color: themeData.brightness == Brightness.light
? Colors.white.withOpacity(0.3)
: Colors.black.withOpacity(0.4),
border:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -741,13 +741,13 @@ class CalendarViewHelper {
}

/// Method to switch the views based on the keyboard interaction.
static KeyEventResult handleViewSwitchKeyBoardEvent(RawKeyEvent event,
static KeyEventResult handleViewSwitchKeyBoardEvent(KeyEvent event,
CalendarController controller, List<CalendarView>? allowedViews) {
/// Ctrl + and Ctrl - used by browser to zoom the page, hence as referred
/// EJ2 scheduler, we have used alt + numeric to switch between views in
/// calendar web and windows
CalendarView view = controller.view!;
if (event.isAltPressed) {
if (HardwareKeyboard.instance.isAltPressed) {
if (event.logicalKey == LogicalKeyboardKey.digit1) {
view = CalendarView.day;
} else if (event.logicalKey == LogicalKeyboardKey.digit2) {
Expand Down Expand Up @@ -1088,7 +1088,7 @@ class CalendarAppointment {

@override
// ignore: avoid_equals_and_hash_code_on_mutable_classes
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
}
Expand Down Expand Up @@ -1258,7 +1258,7 @@ class CalendarTimeRegion {

@override
// ignore: avoid_equals_and_hash_code_on_mutable_classes
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class CalendarResource with Diagnosticable {
final ImageProvider? image;

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ class _ResourceViewRenderObject extends CustomCalendarRenderObject {

if (mouseHoverPosition != null) {
final Color resourceHoveringColor =
(calendarTheme.brightness == Brightness.dark
(themeData.brightness == Brightness.dark
? Colors.white
: Colors.black87)
.withOpacity(0.04);
Expand Down Expand Up @@ -476,11 +476,10 @@ class _ResourceViewRenderObject extends CustomCalendarRenderObject {
: actualItemWidth / 2;
final Color resourceCellBorderColor =
cellBorderColor ?? calendarTheme.cellBorderColor!;
final Color resourceHoveringColor =
(calendarTheme.brightness == Brightness.dark
? Colors.white
: Colors.black87)
.withOpacity(0.04);
final Color resourceHoveringColor = (themeData.brightness == Brightness.dark
? Colors.white
: Colors.black87)
.withOpacity(0.04);
final TextStyle displayNameTextStyle = calendarTheme.displayNameTextStyle!;
_circlePainter.color = resourceCellBorderColor;
_circlePainter.strokeWidth = 0.5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class DragAndDropSettings with Diagnosticable {
final Duration autoNavigateDelay;

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class CalendarHeaderStyle with Diagnosticable {
final Color? backgroundColor;

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ class MonthViewSettings with Diagnosticable {
final MonthNavigationDirection navigationDirection;

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
}
Expand Down Expand Up @@ -982,7 +982,7 @@ class AgendaStyle with Diagnosticable {
final Color? backgroundColor;

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
}
Expand Down Expand Up @@ -1552,7 +1552,7 @@ class MonthCellStyle with Diagnosticable {
final Color? leadingDatesBackgroundColor;

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class ResourceViewSettings with Diagnosticable {
final bool showAvatar;

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ class ScheduleViewSettings with Diagnosticable {
final bool hideEmptyScheduleWeek;

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
}
Expand Down Expand Up @@ -597,7 +597,7 @@ class MonthHeaderSettings with Diagnosticable {
final TextStyle? monthTextStyle;

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
}
Expand Down Expand Up @@ -915,7 +915,7 @@ class WeekHeaderSettings with Diagnosticable {
final TextStyle? weekTextStyle;

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
}
Expand Down Expand Up @@ -1152,7 +1152,7 @@ class DayHeaderSettings with Diagnosticable {
final TextStyle? dateTextStyle;

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ class TimeRegion with Diagnosticable {
}

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ class TimeSlotViewSettings with Diagnosticable {
final int numberOfDaysInView;

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class ViewHeaderStyle with Diagnosticable {
final TextStyle? dayTextStyle;

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class WeekNumberStyle with Diagnosticable {
final TextStyle? textStyle;

@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
}
Expand Down
Loading