small theme changes #3
@@ -1,15 +1,20 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
ThemeData get lightTheme => ThemeData.from(colorScheme: _lightColorScheme);
|
const _seed = Colors.deepPurple;
|
||||||
|
|
||||||
ThemeData get darkTheme => ThemeData.from(colorScheme: _darkColorScheme);
|
ColorScheme get _lightColorScheme =>
|
||||||
|
ColorScheme.fromSeed(seedColor: _seed, brightness: Brightness.light);
|
||||||
|
|
||||||
ColorScheme get _darkColorScheme => ColorScheme.fromSeed(
|
ColorScheme get _darkColorScheme =>
|
||||||
seedColor: Colors.deepPurple,
|
ColorScheme.fromSeed(seedColor: _seed, brightness: Brightness.dark);
|
||||||
brightness: Brightness.dark,
|
|
||||||
);
|
|
||||||
|
|
||||||
ColorScheme get _lightColorScheme => ColorScheme.fromSeed(
|
ThemeData get lightTheme => _baseTheme(_lightColorScheme);
|
||||||
seedColor: Colors.deepPurple,
|
|
||||||
brightness: Brightness.light,
|
ThemeData get darkTheme => _baseTheme(_darkColorScheme);
|
||||||
);
|
|
||||||
|
ThemeData _baseTheme(ColorScheme scheme) =>
|
||||||
|
ThemeData.from(colorScheme: scheme, useMaterial3: true).copyWith(
|
||||||
|
inputDecorationTheme: InputDecorationTheme(
|
||||||
|
border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|||||||
@@ -41,9 +41,7 @@ class CreateBookmarkCollectionDialog extends StatelessWidget {
|
|||||||
FilteringTextInputFormatter.deny(RegExp(r'\s\s+')),
|
FilteringTextInputFormatter.deny(RegExp(r'\s\s+')),
|
||||||
],
|
],
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
// TODO: Localize
|
|
||||||
labelText: AppLocalizations.of(context)!.collectionName,
|
labelText: AppLocalizations.of(context)!.collectionName,
|
||||||
border: OutlineInputBorder(borderRadius: BorderRadius.circular(10)),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
|
|||||||
@@ -61,9 +61,6 @@ class CreateBookmarkDialog extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: AppLocalizations.of(context)!.bookmarkTitle,
|
labelText: AppLocalizations.of(context)!.bookmarkTitle,
|
||||||
border: OutlineInputBorder(
|
|
||||||
borderRadius: BorderRadius.circular(10),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
TextField(
|
TextField(
|
||||||
@@ -78,9 +75,6 @@ class CreateBookmarkDialog extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: AppLocalizations.of(context)!.url,
|
labelText: AppLocalizations.of(context)!.url,
|
||||||
border: OutlineInputBorder(
|
|
||||||
borderRadius: BorderRadius.circular(10),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
TextField(
|
TextField(
|
||||||
@@ -95,9 +89,6 @@ class CreateBookmarkDialog extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: AppLocalizations.of(context)!.description,
|
labelText: AppLocalizations.of(context)!.description,
|
||||||
border: OutlineInputBorder(
|
|
||||||
borderRadius: BorderRadius.circular(10),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user