Skip to content

Commit

Permalink
Merge pull request #346 from AOSSIE-Org/Update-live-room-and-upcommin…
Browse files Browse the repository at this point in the history
…g-room-tiles

Update live room and upcoming room tiles
  • Loading branch information
Aarush-Acharya authored Oct 3, 2024
2 parents afa9626 + fa7239f commit 33382ac
Show file tree
Hide file tree
Showing 11 changed files with 533 additions and 1,139 deletions.
4 changes: 2 additions & 2 deletions lib/controllers/tabview_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:resonate/controllers/auth_state_controller.dart';
import 'package:resonate/controllers/rooms_controller.dart';
import 'package:resonate/models/appwrite_room.dart';
import 'package:resonate/utils/colors.dart';
import 'package:resonate/views/widgets/room_tile.dart';
import 'package:resonate/views/widgets/live_room_tile.dart';

import '../views/screens/room_screen.dart';

Expand Down Expand Up @@ -59,7 +59,7 @@ class TabViewController extends GetxController {
title: "Join Room",
titleStyle: const TextStyle(color: Colors.amber, fontSize: 25),
content: Column(
children: [RoomTile(room: appwriteRoom)],
children: [CustomLiveRoomTile(appwriteRoom: appwriteRoom)],
),
backgroundColor: AppColor.bgBlackColor);
}
Expand Down
21 changes: 21 additions & 0 deletions lib/utils/extensions/datetime_extension.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import 'dart:ui';

import 'package:intl/intl.dart';

extension DateTimeExtensions on DateTime {
String dateToLocalFormatted(Locale locale) {
final localDateTime = toLocal();

final localDate = DateFormat.yMd().format(localDateTime);

String localTime = DateFormat.jm().format(localDateTime);

if (locale.languageCode == 'ht') {
final timePeriod = localDateTime.hour < 12 ? 'AM' : 'PM';
localTime =
DateFormat.jm(locale.languageCode).format(localDateTime) + timePeriod;
}

return '$localDate $localTime';
}
}
78 changes: 0 additions & 78 deletions lib/views/screens/create_no_room_screen.dart

This file was deleted.

Loading

0 comments on commit 33382ac

Please sign in to comment.