Skip to content

Commit

Permalink
Theme Controller added to About Section (#165)
Browse files Browse the repository at this point in the history
* Controller added to Repeat tile Font Weight.

* Theme Controller added to About
  • Loading branch information
sameermansoori1 authored Nov 26, 2023
1 parent 8f1bd74 commit 3a9f724
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion lib/app/modules/About/views/about_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,39 @@ import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:get/get.dart';
import 'package:ultimate_alarm_clock/app/modules/about/controller/about_controller.dart';
import 'package:ultimate_alarm_clock/app/modules/settings/controllers/theme_controller.dart';
import 'package:ultimate_alarm_clock/app/utils/constants.dart';
import 'package:ultimate_alarm_clock/app/utils/utils.dart';

class AboutView extends GetView<AboutController> {
final AboutController aboutController = Get.find<AboutController>();
ThemeController themeController = Get.find<ThemeController>();


@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('About'),
title: Text('About',style: Theme.of(context).textTheme.titleLarge!.copyWith(
color: themeController.isLightMode.value
? kLightPrimaryTextColor
: kprimaryTextColor,
fontWeight: FontWeight.w500,
),),
elevation: 0,
centerTitle: true,
leading: IconButton(
icon: Icon(
Icons.adaptive.arrow_back,
color: themeController.isLightMode.value
? kLightPrimaryTextColor
: kprimaryTextColor,
),
onPressed: () {
Utils.hapticFeedback();
Navigator.of(context).pop();
},
),
),
body: Center(
child: Column(
Expand Down

0 comments on commit 3a9f724

Please sign in to comment.