Skip to content

Commit

Permalink
Fix linting issues in Flutter FE
Browse files Browse the repository at this point in the history
  • Loading branch information
MrME-CodeSmith committed Sep 22, 2023
1 parent 3304f00 commit 8f1f0a6
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions client/lib/screens/suggestions_screens.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:koja/Utils/event_util.dart';
import 'package:lottie/lottie.dart';
import 'package:provider/provider.dart';
import 'package:syncfusion_flutter_calendar/calendar.dart';

Expand All @@ -16,13 +16,12 @@ class SuggestionsTasksScreen extends StatefulWidget {
}

class _SuggestionsTasksScreenState extends State<SuggestionsTasksScreen> {
Widget? _suggestionsWidget;
@override
Widget build(BuildContext context) {
final serviceProvider =
Provider.of<ServiceProvider>(context, listen: false);
// final contextProvider = Provider.of<ContextProvider>(context, listen: false);
final _mockEventList = List<Event>.empty(growable: true);
final mockEventList = List<Event>.empty(growable: true);
final Event event1 = Event(
title: 'Event 1',
description: 'Event 1 Description',
Expand All @@ -31,7 +30,7 @@ class _SuggestionsTasksScreenState extends State<SuggestionsTasksScreen> {
isAllDay: false,
location: ""
);
_mockEventList.add(event1);
mockEventList.add(event1);
final Event event2 = Event(
title: 'Event 2',
description: 'Event 2 Description',
Expand All @@ -40,7 +39,7 @@ class _SuggestionsTasksScreenState extends State<SuggestionsTasksScreen> {
isAllDay: false,
location: ""
);
_mockEventList.add(event2);
mockEventList.add(event2);
//final mediaQuery = MediaQuery.of(context);
// return Scaffold(
// body: Column(
Expand Down Expand Up @@ -122,7 +121,7 @@ class _SuggestionsTasksScreenState extends State<SuggestionsTasksScreen> {
CalendarView.week,
CalendarView.month,
],
dataSource: MeetingDataSource(_mockEventList),
dataSource: MeetingDataSource(mockEventList),
monthViewSettings: MonthViewSettings(
appointmentDisplayMode: MonthAppointmentDisplayMode.appointment),
onTap: (CalendarTapDetails details) {
Expand All @@ -132,7 +131,7 @@ class _SuggestionsTasksScreenState extends State<SuggestionsTasksScreen> {
//meeting.isDynamic = meeting.isDynamic ? false : true;
//meeting.backgroundColor = meeting.isDynamic ? Colors.red : Colors.blue;
});
print(meeting.isDynamic);
if(kDebugMode) print(meeting.isDynamic);
}
},
),
Expand All @@ -142,7 +141,7 @@ class _SuggestionsTasksScreenState extends State<SuggestionsTasksScreen> {
right: 15.0,
child: ElevatedButton(
onPressed: () async {
if (await serviceProvider.setSuggestedCalendar(_mockEventList)){
if (await serviceProvider.setSuggestedCalendar(mockEventList)){
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text('Calendar Set Successfully'),
Expand Down

0 comments on commit 8f1f0a6

Please sign in to comment.