Deprecated: ColorScheme.background is now ColorScheme.surface
parent
e350bdf91c
commit
fec48737c7
|
@ -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,
|
||||||
|
|
|
@ -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(
|
||||||
|
|
|
@ -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: [
|
||||||
|
|
|
@ -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"),
|
||||||
),
|
),
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue