Skip to content

Commit

Permalink
made ui compliant with
Browse files Browse the repository at this point in the history
  • Loading branch information
devout-coder committed Aug 23, 2023
1 parent e9e2f70 commit 59401a3
Show file tree
Hide file tree
Showing 7 changed files with 182 additions and 173 deletions.
2 changes: 1 addition & 1 deletion lib/screens/main_screen/widget/card_display.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class _CardDisplayState extends ConsumerState<CardDisplay> {
return const SliverToBoxAdapter(
child: Center(
child: Text(
"Unable to fetch timetable. Please check if you have entered your details properly.",
"Unable to fetch timetable. Please check if you have entered your details correctly in the profile section.",
textAlign: TextAlign.center,
),
),
Expand Down
321 changes: 155 additions & 166 deletions lib/screens/profile_screen/profile_screen.dart

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class _CustomTextWithDividerState extends State<CustomTextWithDivider> {
if (widget.showDivider) // Conditionally display the Divider
Divider(
thickness: 1,
color: Color(0xFF454545),
color: Theme.of(context).colorScheme.outline,
),
// Divider(
// thickness: 1,
Expand Down
5 changes: 4 additions & 1 deletion lib/screens/profile_screen/widgets/profile_text_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,12 @@ class _ProfileTextFieldState extends State<ProfileTextField> {
decoration: InputDecoration(
enabledBorder: UnderlineInputBorder(
borderSide: BorderSide(
color: Color(0xFF454545),
color: Theme.of(context).colorScheme.outline,
), // Change to your desired color
),
disabledBorder: UnderlineInputBorder(
borderSide: BorderSide(
color: Theme.of(context).colorScheme.inversePrimary)),
labelStyle: const TextStyle(
color: Colors.grey,
),
Expand Down
2 changes: 1 addition & 1 deletion lib/services/auth_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:image_picker/image_picker.dart';
import 'package:tsec_app/models/student_model/student_model.dart';
import 'package:tsec_app/provider/auth_provider.dart';
import 'package:tsec_app/screens/profile_screen/widgets/customTextWithDivider.dart';
import 'package:tsec_app/screens/profile_screen/widgets/custom_text_with_divider.dart';
import 'package:tsec_app/screens/profile_screen/widgets/profile_screen_appbar.dart';
import 'package:tsec_app/screens/profile_screen/widgets/profile_text_field.dart';
import 'package:tsec_app/widgets/custom_scaffold.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/services/timetable_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TimeTableService {
Stream<Map<String, dynamic>?> getweekTimetable(String? data) {
final d = data ?? NotificationType.yearBranchDivTopic;
return _firestore
.collection('TimeTable')
.collection('TimeTable 2023')
.doc(d)
.snapshots()
.map((doc) => doc.data());
Expand Down
21 changes: 19 additions & 2 deletions lib/utils/themes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,15 @@ late final theme = ThemeData(
displayColor: kBlack,
),
fontFamily: "SF Pro Text",
colorScheme: ColorScheme.fromSwatch().copyWith(secondary: Colors.white),
colorScheme: ColorScheme.fromSwatch().copyWith(
secondary: Colors.white,
onPrimary: Color.fromARGB(255, 78, 73, 73),
inversePrimary: Color.fromARGB(255, 241, 241, 241),
primaryContainer: Colors.white,
secondaryContainer: Color(0xff00C62C),
onSecondaryContainer: Colors.black,
outline: Color(0xFFE0E0E0),
),
);

late final darkTheme = ThemeData(
Expand All @@ -84,6 +92,7 @@ late final darkTheme = ThemeData(
primaryColorDark: const Color(0xFF000000),
shadowColor: const Color(0x00A9A9A9),
cardColor: Colors.white70,
// textSecondaryColor: Color.fromARGB(255, 65, 60, 60),
elevatedButtonTheme: _getElevatedButtonTheme(
darkColor: kDarkModeDarkBlue,
lightColor: kDarkModeLightBlue,
Expand All @@ -97,7 +106,15 @@ late final darkTheme = ThemeData(
displayColor: kWhite,
),
fontFamily: "SF Pro Text",
colorScheme: ColorScheme.fromSwatch().copyWith(secondary: kLightBlack),
colorScheme: ColorScheme.fromSwatch().copyWith(
secondary: kLightBlack,
onPrimary: Color.fromARGB(255, 171, 171, 171),
primaryContainer: Color(0xFF323232),
secondaryContainer: Color(0xff00C62C),
onSecondaryContainer: Colors.white,
outline: Color(0xFF454545),
inversePrimary: Color.fromARGB(255, 63, 63, 63),
),
);

const _textTheme = TextTheme(
Expand Down

0 comments on commit 59401a3

Please sign in to comment.