Skip to content

Commit

Permalink
Unificazione colore sfondo
Browse files Browse the repository at this point in the history
funzione per lo sfondo di ogni pagina: backgroundColor: Theme.of(context).backgroundColor,
  • Loading branch information
marisuz committed Jan 4, 2023
1 parent 0c88e58 commit 7b0ac5b
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 122 deletions.
1 change: 1 addition & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class MyApp extends StatelessWidget {
title: 'Report.it',
debugShowCheckedModeBanner: false,
theme: ThemeData(
backgroundColor: Color.fromRGBO(255, 254, 248, 1),
primarySwatch: Colors.red,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
Expand Down
83 changes: 0 additions & 83 deletions lib/presentation/pages/denuncia_home.dart

This file was deleted.

15 changes: 7 additions & 8 deletions lib/presentation/pages/denuncia_home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@ class Denunce extends StatelessWidget {

@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: Text(
'SEZIONE DENUNCE',
style: TextStyle(
fontSize: 40, fontWeight: FontWeight.bold, color: Colors.black),
),
return Scaffold(
body: Center(
child: Text(
'SEZIONE DENUNCE',
style: TextStyle(
fontSize: 40, fontWeight: FontWeight.bold, color: Colors.black),
),
),
backgroundColor: Theme.of(context).backgroundColor,
);
}
}
15 changes: 7 additions & 8 deletions lib/presentation/pages/forum_home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@ class Forum extends StatelessWidget {

@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: Text(
'SEZIONE FORUM',
style: TextStyle(
fontSize: 40, fontWeight: FontWeight.bold, color: Colors.black),
),
return Scaffold(
body: Center(
child: Text(
'SEZIONE FORUM',
style: TextStyle(
fontSize: 40, fontWeight: FontWeight.bold, color: Colors.black),
),
),
backgroundColor: Theme.of(context).backgroundColor,
);
}
}
7 changes: 0 additions & 7 deletions lib/presentation/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,11 @@ import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_snake_navigationbar/flutter_snake_navigationbar.dart';
import 'package:iconsax/iconsax.dart';
import 'package:provider/provider.dart';
import 'package:report_it/presentation/pages/informativa_contatti_page.dart';
import 'package:report_it/presentation/pages/fake_index.dart';
import 'package:report_it/presentation/pages/forum_home_page.dart';
import 'package:report_it/presentation/pages/mappa_page.dart';
import 'package:report_it/presentation/pages/psicologo_home_page.dart';
import '../../domain/repository/authentication_service.dart';
import 'denuncia_home_page.dart';
import 'forum_home_page.dart';
import 'informativa_contatti_page.dart';
import 'mappa_page.dart';
import 'psicologo_home_page.dart';

class HomePage extends StatefulWidget {
const HomePage({Key? key}) : super(key: key);
Expand Down
15 changes: 7 additions & 8 deletions lib/presentation/pages/mappa_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@ class Mappa extends StatelessWidget {

@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: Text(
'SEZIONE MAPPA',
style: TextStyle(
fontSize: 40, fontWeight: FontWeight.bold, color: Colors.black),
),
return Scaffold(
body: Center(
child: Text(
'SEZIONE MAPPA',
style: TextStyle(
fontSize: 40, fontWeight: FontWeight.bold, color: Colors.black),
),
),
backgroundColor: Theme.of(context).backgroundColor,
);
}
}
15 changes: 7 additions & 8 deletions lib/presentation/pages/psicologo_home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@ class Psicologo extends StatelessWidget {

@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: Text(
'SEZIONE PSICOLOGO',
style: TextStyle(
fontSize: 40, fontWeight: FontWeight.bold, color: Colors.black),
),
return Scaffold(
body: Center(
child: Text(
'SEZIONE PSICOLOGO',
style: TextStyle(
fontSize: 40, fontWeight: FontWeight.bold, color: Colors.black),
),
),
backgroundColor: Theme.of(context).backgroundColor,
);
}
}
7 changes: 7 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
carousel_slider:
dependency: "direct main"
description:
name: carousel_slider
url: "https://pub.dartlang.org"
source: hosted
version: "4.2.1"
characters:
dependency: transitive
description:
Expand Down

0 comments on commit 7b0ac5b

Please sign in to comment.