fix : Différentes erreurs
This commit is contained in:
@@ -8,7 +8,7 @@ import 'package:bahla_front/ui/common/post_card_widget.dart';
|
||||
|
||||
class EventDetailsView extends StackedView<EventDetailsViewModel> {
|
||||
final int eventId;
|
||||
const EventDetailsView({Key? key, required this.eventId}) : super(key: key);
|
||||
const EventDetailsView({super.key, required this.eventId});
|
||||
|
||||
@override
|
||||
Widget builder(
|
||||
@@ -32,7 +32,7 @@ class EventDetailsView extends StackedView<EventDetailsViewModel> {
|
||||
SliverToBoxAdapter(
|
||||
child: Column(
|
||||
children: [
|
||||
Container(
|
||||
SizedBox(
|
||||
width: double.infinity,
|
||||
height: MediaQuery.of(context).size.width * 9 / 16,
|
||||
child: const Image(
|
||||
@@ -56,7 +56,7 @@ class EventDetailsView extends StackedView<EventDetailsViewModel> {
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
Center(
|
||||
child: Container(
|
||||
child: SizedBox(
|
||||
width: MediaQuery.of(context).size.width * 0.8,
|
||||
child: Table(
|
||||
columnWidths: const {
|
||||
@@ -153,7 +153,7 @@ class EventDetailsView extends StackedView<EventDetailsViewModel> {
|
||||
padding: const EdgeInsets.symmetric(vertical: 4.0),
|
||||
child: Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: Container(
|
||||
child: SizedBox(
|
||||
width: 40,
|
||||
height: 40,
|
||||
child: Image.asset(
|
||||
|
||||
@@ -5,7 +5,7 @@ import 'package:intl/intl.dart';
|
||||
import 'home_viewmodel.dart';
|
||||
|
||||
class HomeView extends StackedView<HomeViewModel> {
|
||||
const HomeView({Key? key}) : super(key: key);
|
||||
const HomeView({super.key});
|
||||
|
||||
@override
|
||||
Widget builder(
|
||||
@@ -14,7 +14,7 @@ class HomeView extends StackedView<HomeViewModel> {
|
||||
Widget? child,
|
||||
) {
|
||||
return Scaffold(
|
||||
backgroundColor: Theme.of(context).colorScheme.background,
|
||||
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||
body: ListView.builder(
|
||||
itemCount: viewModel.events.length,
|
||||
itemBuilder: (context, index) {
|
||||
|
||||
@@ -7,7 +7,7 @@ import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'main_viewmodel.dart';
|
||||
|
||||
class MainView extends StackedView<MainViewModel> {
|
||||
const MainView({Key? key}) : super(key: key);
|
||||
const MainView({super.key});
|
||||
|
||||
@override
|
||||
Widget builder(
|
||||
@@ -30,7 +30,7 @@ class MainView extends StackedView<MainViewModel> {
|
||||
],
|
||||
),
|
||||
centerTitle: false,
|
||||
backgroundColor: Theme.of(context).colorScheme.background,
|
||||
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||
shape: Border(
|
||||
bottom: BorderSide(
|
||||
color: Theme.of(context).colorScheme.outline,
|
||||
@@ -38,10 +38,10 @@ class MainView extends StackedView<MainViewModel> {
|
||||
),
|
||||
),
|
||||
),
|
||||
backgroundColor: Theme.of(context).colorScheme.background,
|
||||
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||
bottomNavigationBar: BottomNavigationBar(
|
||||
type: BottomNavigationBarType.fixed,
|
||||
backgroundColor: Theme.of(context).colorScheme.background,
|
||||
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||
currentIndex: viewModel.currentIndex,
|
||||
onTap: viewModel.setIndex,
|
||||
showSelectedLabels: false,
|
||||
|
||||
@@ -6,7 +6,7 @@ import 'package:bahla_front/ui/common/ui_helpers.dart';
|
||||
import 'startup_viewmodel.dart';
|
||||
|
||||
class StartupView extends StackedView<StartupViewModel> {
|
||||
const StartupView({Key? key}) : super(key: key);
|
||||
const StartupView({super.key});
|
||||
|
||||
@override
|
||||
Widget builder(
|
||||
|
||||
Reference in New Issue
Block a user