small theme changes #3
@@ -1,15 +1,20 @@
|
||||
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(
|
||||
seedColor: Colors.deepPurple,
|
||||
brightness: Brightness.dark,
|
||||
);
|
||||
ColorScheme get _darkColorScheme =>
|
||||
ColorScheme.fromSeed(seedColor: _seed, brightness: Brightness.dark);
|
||||
|
||||
ColorScheme get _lightColorScheme => ColorScheme.fromSeed(
|
||||
seedColor: Colors.deepPurple,
|
||||
brightness: Brightness.light,
|
||||
);
|
||||
ThemeData get lightTheme => _baseTheme(_lightColorScheme);
|
||||
|
||||
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+')),
|
||||
],
|
||||
decoration: InputDecoration(
|
||||
// TODO: Localize
|
||||
labelText: AppLocalizations.of(context)!.collectionName,
|
||||
border: OutlineInputBorder(borderRadius: BorderRadius.circular(10)),
|
||||
),
|
||||
),
|
||||
actions: [
|
||||
|
||||
@@ -61,9 +61,6 @@ class CreateBookmarkDialog extends StatelessWidget {
|
||||
],
|
||||
decoration: InputDecoration(
|
||||
labelText: AppLocalizations.of(context)!.bookmarkTitle,
|
||||
border: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
),
|
||||
),
|
||||
),
|
||||
TextField(
|
||||
@@ -78,9 +75,6 @@ class CreateBookmarkDialog extends StatelessWidget {
|
||||
],
|
||||
decoration: InputDecoration(
|
||||
labelText: AppLocalizations.of(context)!.url,
|
||||
border: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
),
|
||||
),
|
||||
),
|
||||
TextField(
|
||||
@@ -95,9 +89,6 @@ class CreateBookmarkDialog extends StatelessWidget {
|
||||
],
|
||||
decoration: InputDecoration(
|
||||
labelText: AppLocalizations.of(context)!.description,
|
||||
border: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user