Skip to content

Instantly share code, notes, and snippets.

import 'package:flutter/material.dart';
class AddApartmentScreen extends StatefulWidget {
const AddApartmentScreen({Key? key}) : super(key: key);
@override
State<AddApartmentScreen> createState() => _AddApartmentScreenState();
}
class _AddApartmentScreenState extends State<AddApartmentScreen> {
import 'package:flutter/material.dart';
import '../widgets/booking_card.dart';
class BookingsUI extends StatelessWidget {
const BookingsUI({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: const Color(0xFFF5F0FA),
import 'package:flutter/material.dart';
class BookingCard extends StatelessWidget {
final int apartmentId;
final String startDate;
final String endDate;
final String status;
final VoidCallback onEdit;
final VoidCallback onCancel;
import 'package:flutter/material.dart';
class NotificationsScreen extends StatelessWidget {
const NotificationsScreen({super.key});
@override
Widget build(BuildContext context) {
// Example response data (can be fetched from API later)
final notifications = [
{