Skip to content

Commit

Permalink
Merge pull request #191 from 12fahed/main
Browse files Browse the repository at this point in the history
images change, bear min chnages in ui
  • Loading branch information
12fahed authored Jul 11, 2024
2 parents 6cc42af + 9356ea1 commit 90ef496
Show file tree
Hide file tree
Showing 9 changed files with 181 additions and 115 deletions.
Binary file added assets/images/app_bar/notification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/railway.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class _OldCommittessScreenState extends State<OldCommittessScreen> {
children: [
Text(
data[_currentPage].name,
style: Theme.of(context).textTheme.headlineSmall!.copyWith(fontSize: 4),
style: Theme.of(context).textTheme.headlineSmall!.copyWith(fontSize: 20),
textAlign: TextAlign.center,
),
const SizedBox(height: 15),
Expand Down Expand Up @@ -124,6 +124,7 @@ class _OldCommittessScreenState extends State<OldCommittessScreen> {
);
}


double _getScale(int index, double page) {
return 1 - (lerpDouble(0, .4, index - page) ?? 0).abs();
}
Expand Down
18 changes: 15 additions & 3 deletions lib/new_ui/screens/railway_screen/railway_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -884,11 +884,23 @@ class _RailwayConcessionScreenState
width: size.width * 0.8,
height: size.height * 0.4,
alignment: Alignment.center,
child: Text(
"You Dont have any ongoing pass",
style: TextStyle(fontSize: 18, color: Colors.white),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Image.asset(
'assets/images/railway.png',
width: 300,
),
SizedBox(height: 10),
Text(
"You don't have any ongoing pass",
style: TextStyle(fontSize: 15, color: Colors.yellow, fontWeight: FontWeight.bold),
),
],
),
),


],
),
],
Expand Down
6 changes: 5 additions & 1 deletion lib/screens/notification_screen/notification_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class _NotificationScreenState extends ConsumerState<NotificationScreen> {
SliverToBoxAdapter(
child: CustomAppBar(
title: "Notifications",
image: Image.asset(ImageAssets.committes),
image: Image.asset(ImageAssets.notification),
),
),
],
Expand Down Expand Up @@ -95,6 +95,10 @@ class _NotificationScreenState extends ConsumerState<NotificationScreen> {
_lastDate = notificationTime;
return Center(
child: Chip(
backgroundColor: Colors.white,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20.0),
),
labelStyle: const TextStyle(fontSize: 12),
label: Text(
DateFormat("dd MMMM,yyyy").format(notificationTime),
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/image_assets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ImageAssets {
static const tsecImg = "$_root/app_bar/tsec.png";
static const tpo = "$_root/app_bar/tpo.png";
static const notes = "$_root/app_bar/notes.png";

static const notification = "$_root/app_bar/notification.png";
// icons
static const _iconRoot = "$_root/icons";

Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/custom_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CustomAppBar extends ConsumerWidget implements PreferredSizeWidget {
Widget build(BuildContext context, WidgetRef ref) {
return SafeArea(
child: Container(
height: 235,
height: 200,
decoration: BoxDecoration(
color: commonbgLightblack,
borderRadius: const BorderRadius.only(
Expand Down
Loading

0 comments on commit 90ef496

Please sign in to comment.