41 lines
1.2 KiB
Dart
41 lines
1.2 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
// const Color _seed = Color.fromARGB(255, 8, 150, 255);
|
|
const Color _seed = Color.fromARGB(255, 50, 110, 160);
|
|
|
|
final _darkScheme =
|
|
ColorScheme.fromSeed(seedColor: _seed, brightness: Brightness.dark);
|
|
|
|
final _lightScheme =
|
|
ColorScheme.fromSeed(seedColor: _seed, brightness: Brightness.light);
|
|
|
|
final darkTheme = ThemeData(
|
|
colorScheme: _darkScheme,
|
|
toggleableActiveColor: _darkScheme.primary,
|
|
cardColor: _darkScheme.secondaryContainer);
|
|
|
|
final lightTheme = ThemeData(
|
|
colorScheme: _lightScheme,
|
|
toggleableActiveColor: _lightScheme.primary,
|
|
cardColor: _lightScheme.secondaryContainer);
|
|
|
|
final bottomButtonStyle = ButtonStyle(
|
|
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
|
shape: MaterialStateProperty.all(
|
|
const RoundedRectangleBorder(
|
|
borderRadius:
|
|
BorderRadius.vertical(top: Radius.zero, bottom: Radius.circular(10)),
|
|
),
|
|
),
|
|
elevation: const MaterialStatePropertyAll(10),
|
|
);
|
|
|
|
// https://stackoverflow.com/a/51119796/13538080
|
|
class MyBehavior extends ScrollBehavior {
|
|
@override
|
|
Widget buildOverscrollIndicator(
|
|
BuildContext context, Widget child, ScrollableDetails details) {
|
|
return child;
|
|
}
|
|
}
|