refactoring
This commit is contained in:
@@ -77,6 +77,7 @@ class EventCard extends StatelessWidget {
|
||||
menuKey: menuKey,
|
||||
menuContext: context,
|
||||
location: event.location,
|
||||
onClose: () { },
|
||||
),
|
||||
const Divider(color: Colors.white24),
|
||||
Row(
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import 'package:afterwork/presentation/screens/event/event_card.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:afterwork/data/models/event_model.dart';
|
||||
import 'package:afterwork/presentation/screens/event/event_card.dart';
|
||||
import '../dialogs/add_event_dialog.dart';
|
||||
|
||||
import '../../state_management/event_bloc.dart';
|
||||
import '../dialogs/add_event_dialog.dart';
|
||||
|
||||
class EventScreen extends StatefulWidget {
|
||||
final String userId;
|
||||
@@ -42,7 +42,8 @@ class _EventScreenState extends State<EventScreen> {
|
||||
backgroundColor: const Color(0xFF1E1E2C),
|
||||
actions: [
|
||||
IconButton(
|
||||
icon: const Icon(Icons.add_circle_outline, size: 28, color: Color(0xFF1DBF73)),
|
||||
icon: const Icon(Icons.add_circle_outline,
|
||||
size: 28, color: Color(0xFF1DBF73)),
|
||||
onPressed: () {
|
||||
// Naviguer vers une nouvelle page pour ajouter un événement
|
||||
Navigator.push(
|
||||
@@ -95,7 +96,6 @@ class _EventScreenState extends State<EventScreen> {
|
||||
},
|
||||
status: event.status,
|
||||
);
|
||||
|
||||
},
|
||||
);
|
||||
} else if (state is EventError) {
|
||||
|
||||
Reference in New Issue
Block a user