Deprecated: ColorScheme.background is now ColorScheme.surface

master
Rafael 2024-06-03 23:22:43 +02:00
parent e350bdf91c
commit fec48737c7
6 changed files with 6 additions and 6 deletions

View File

@ -16,7 +16,7 @@ class MyDrawer extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Drawer( return Drawer(
backgroundColor: Theme.of(context).colorScheme.background, backgroundColor: Theme.of(context).colorScheme.surface,
child: CustomScrollView(slivers: [ child: CustomScrollView(slivers: [
SliverFillRemaining( SliverFillRemaining(
hasScrollBody: false, hasScrollBody: false,

View File

@ -50,7 +50,7 @@ class LoginPage extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
backgroundColor: Theme.of(context).colorScheme.background, backgroundColor: Theme.of(context).colorScheme.surface,
body: Center( body: Center(
child: SingleChildScrollView( child: SingleChildScrollView(
child: Column( child: Column(

View File

@ -54,7 +54,7 @@ class RegisterPage extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
backgroundColor: Theme.of(context).colorScheme.background, backgroundColor: Theme.of(context).colorScheme.surface,
body: Center( body: Center(
child: ListView(children: [ child: ListView(children: [
Column(mainAxisAlignment: MainAxisAlignment.center, children: [ Column(mainAxisAlignment: MainAxisAlignment.center, children: [

View File

@ -9,7 +9,7 @@ class SettingsPage extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
backgroundColor: Theme.of(context).colorScheme.background, backgroundColor: Theme.of(context).colorScheme.surface,
appBar: AppBar( appBar: AppBar(
title: const Text("Settings"), title: const Text("Settings"),
), ),

View File

@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
ThemeData darkMode = ThemeData( ThemeData darkMode = ThemeData(
colorScheme: ColorScheme.dark( colorScheme: ColorScheme.dark(
background: Colors.grey.shade900, surface: Colors.grey.shade900,
primary: Colors.grey.shade600, primary: Colors.grey.shade600,
secondary: Colors.grey.shade700, secondary: Colors.grey.shade700,
tertiary: Colors.grey.shade800, tertiary: Colors.grey.shade800,

View File

@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
ThemeData lightMode = ThemeData( ThemeData lightMode = ThemeData(
colorScheme: ColorScheme.light( colorScheme: ColorScheme.light(
background: Colors.grey.shade300, surface: Colors.grey.shade300,
primary: Colors.grey.shade500, primary: Colors.grey.shade500,
secondary: Colors.grey.shade200, secondary: Colors.grey.shade200,
tertiary: Colors.white, tertiary: Colors.white,