-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from aninarafath6/notice
drawer avatar removed
- Loading branch information
Showing
13 changed files
with
228 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
arnhss-app/lib/features/attendance/view/attendance_view.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import 'package:arnhss/common/constants/color_constants.dart'; | ||
import 'package:arnhss/features/attendance/widgets/attendance_calendar.dart'; | ||
import 'package:arnhss/features/authentication/login/view/index.dart'; | ||
|
||
class AttendanceView extends StatelessWidget { | ||
const AttendanceView({Key? key}) : super(key: key); | ||
static const routeName = "/attendance"; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: AppBar( | ||
backgroundColor: Colors.white, | ||
elevation: 0, | ||
leadingWidth: 72, | ||
centerTitle: true, | ||
leading: IconButton( | ||
splashRadius: 25, | ||
onPressed: () { | ||
Navigator.pop(context); | ||
}, | ||
icon: const Icon(Icons.arrow_back_ios, color: CustomColors.dark)), | ||
title: const Text("Attendance", | ||
style: TextStyle( | ||
color: CustomColors.dark, fontWeight: FontWeight.bold)), | ||
), | ||
body: Padding( | ||
padding: const EdgeInsets.all(24), | ||
child: Column( | ||
children: const [ | ||
AttendanceCalendar(), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
arnhss-app/lib/features/attendance/widgets/attendance_calendar.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import 'dart:math'; | ||
|
||
import 'package:arnhss/common/constants/color_constants.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:intl/intl.dart'; | ||
import 'package:table_calendar/table_calendar.dart'; | ||
|
||
class AttendanceCalendar extends StatefulWidget { | ||
const AttendanceCalendar({ | ||
Key? key, | ||
}) : super(key: key); | ||
|
||
@override | ||
State<AttendanceCalendar> createState() => _AttendanceCalendarState(); | ||
} | ||
|
||
class _AttendanceCalendarState extends State<AttendanceCalendar> { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Container( | ||
decoration: BoxDecoration(borderRadius: BorderRadius.circular(5)), | ||
child: TableCalendar( | ||
firstDay: DateTime.utc(2010, 10, 16), | ||
lastDay: DateTime.utc(DateTime.now().year, DateTime.now().month, 30), | ||
focusedDay: DateTime.now(), | ||
calendarStyle: const CalendarStyle( | ||
weekendTextStyle: TextStyle( | ||
color: Colors.red, | ||
), | ||
isTodayHighlighted: false, | ||
), | ||
headerStyle: HeaderStyle( | ||
leftChevronVisible: false, | ||
rightChevronVisible: false, | ||
formatButtonVisible: false, | ||
headerPadding: const EdgeInsets.all(18), | ||
titleTextStyle: const TextStyle(color: Colors.black), | ||
decoration: BoxDecoration( | ||
color: CustomColors.lightBgOverlay, | ||
borderRadius: BorderRadius.circular(5), | ||
), | ||
), | ||
daysOfWeekHeight: 50, | ||
headerVisible: true, | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.