Skip to content

Commit

Permalink
chore: adapt to API, test default color override
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-virkus committed Feb 12, 2024
1 parent caafb43 commit eb778ba
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 29 deletions.
4 changes: 3 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ void main() {
settingsUiElementsProvider.overrideWith(CustomSettingsUiElements.new),
settingsProvider.overrideWith(CustomSettingsNotifier.new),
],
child: const EnoughMailApp(),
child: const EnoughMailApp(
appName: 'Maily',
),
),
);
}
12 changes: 9 additions & 3 deletions lib/settings/provider.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import 'package:enough_mail_app/enough_mail_app.dart';
import 'package:flutter/material.dart';

/// Shows how to override the default settings
class CustomSettingsNotifier extends SettingsNotifier {
/// Creates a new [CustomSettingsNotifier]
CustomSettingsNotifier({
super.settings,
});
CustomSettingsNotifier()
: super(
settings: const Settings(
themeSettings: ThemeSettings(
colorSchemeSeed: Colors.pink,
),
),
);

@override
String getSignatureHtmlGlobal() =>
Expand Down
50 changes: 25 additions & 25 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ packages:
dependency: transitive
description:
name: chewie
sha256: "3427e469d7cc99536ac4fbaa069b3352c21760263e65ffb4f0e1c054af43a73e"
sha256: "8bc4ac4cf3f316e50a25958c0f5eb9bb12cf7e8308bb1d74a43b230da2cfc144"
url: "https://pub.dev"
source: hosted
version: "1.7.4"
version: "1.7.5"
chewie_audio:
dependency: transitive
description:
Expand Down Expand Up @@ -508,7 +508,7 @@ packages:
description:
path: "."
ref: HEAD
resolved-ref: "6754401bb38b2449eb21fcebd7437181410a0144"
resolved-ref: fc6d23fb3346794b4d693b70eec8d9f8906f8498
url: "https://github.com/Enough-Software/enough_mail_app.git"
source: git
version: "1.0.0+96"
Expand Down Expand Up @@ -942,10 +942,10 @@ packages:
dependency: "direct main"
description:
name: go_router
sha256: "07ee2436909f749d606f53521dc1725dd738dc5196e5ff815bc254253c594075"
sha256: "170c46e237d6eb0e6e9f0e8b3f56101e14fb64f787016e42edd74c39cf8b176a"
url: "https://pub.dev"
source: hosted
version: "13.1.0"
version: "13.2.0"
google_fonts:
dependency: "direct main"
description:
Expand Down Expand Up @@ -998,10 +998,10 @@ packages:
dependency: transitive
description:
name: hotreloader
sha256: "94ee21a60ea2836500799f3af035dc3212b1562027f1e0031c14e087f0231449"
sha256: ed56fdc1f3a8ac924e717257621d09e9ec20e308ab6352a73a50a1d7a4d9158e
url: "https://pub.dev"
source: hosted
version: "4.1.0"
version: "4.2.0"
html:
dependency: transitive
description:
Expand Down Expand Up @@ -1038,10 +1038,10 @@ packages:
dependency: transitive
description:
name: image
sha256: "49a0d4b0c12402853d3f227fe7c315601b238d126aa4caa5dbb2dcf99421aa4a"
sha256: "4c68bfd5ae83e700b5204c1e74451e7bf3cf750e6843c6e158289cf56bda018e"
url: "https://pub.dev"
source: hosted
version: "4.1.6"
version: "4.1.7"
intl:
dependency: "direct main"
description:
Expand Down Expand Up @@ -1094,10 +1094,10 @@ packages:
dependency: "direct main"
description:
name: latlng
sha256: cbc68be333d6dd4a152190066d0987737a6f04f0e31e670c31bf8cc7219c3a96
sha256: "8e462ded3f638f2f15f9b0de5f363540092b32aee3893d197fe301b4d865f92b"
url: "https://pub.dev"
source: hosted
version: "1.0.0"
version: "1.0.4"
lints:
dependency: transitive
description:
Expand Down Expand Up @@ -1126,10 +1126,10 @@ packages:
dependency: transitive
description:
name: local_auth_ios
sha256: eb283b530029b334698918f1e282d4483737cbca972ff21b9193be3d6de8e2b8
sha256: "6dde47dc852bc0c8343cb58e66a46efb16b62eddf389ce103d4dacb0c6c40c71"
url: "https://pub.dev"
source: hosted
version: "1.1.6"
version: "1.1.7"
local_auth_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -1214,10 +1214,10 @@ packages:
dependency: "direct overridden"
description:
name: meta
sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04
sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
url: "https://pub.dev"
source: hosted
version: "1.11.0"
version: "1.12.0"
mime:
dependency: transitive
description:
Expand Down Expand Up @@ -1351,10 +1351,10 @@ packages:
description:
path: "packages/pdfx"
ref: HEAD
resolved-ref: d637108a2a6e3e97a70304f00f1eda9511fb4f92
resolved-ref: f4a395280bc7097388280e6862c918c51390c67b
url: "https://github.com/ScerIO/packages.flutter"
source: git
version: "2.5.0"
version: "2.6.0"
petitparser:
dependency: transitive
description:
Expand Down Expand Up @@ -1868,10 +1868,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957
sha256: a2662fb1f114f4296cf3f5a50786a2d888268d7776cf681aa17d660ffa23b246
url: "https://pub.dev"
source: hosted
version: "13.0.0"
version: "14.0.0"
wakelock_plus:
dependency: transitive
description:
Expand Down Expand Up @@ -1916,18 +1916,18 @@ packages:
dependency: "direct main"
description:
name: webview_flutter
sha256: d81b68e88cc353e546afb93fb38958e3717282c5ac6e5d3be4a4aef9fc3c1413
sha256: "25e1b6e839e8cbfbd708abc6f85ed09d1727e24e08e08c6b8590d7c65c9a8932"
url: "https://pub.dev"
source: hosted
version: "4.5.0"
version: "4.7.0"
webview_flutter_android:
dependency: transitive
description:
name: webview_flutter_android
sha256: "4ea3c4e1b8ed590162b15b8a61b41b1ef3ff179a314627c16ce40c086d94b8af"
sha256: "3e5f4e9d818086b0d01a66fb1ff9cc72ab0cc58c71980e3d3661c5685ea0efb0"
url: "https://pub.dev"
source: hosted
version: "3.14.0"
version: "3.15.0"
webview_flutter_platform_interface:
dependency: transitive
description:
Expand All @@ -1940,10 +1940,10 @@ packages:
dependency: transitive
description:
name: webview_flutter_wkwebview
sha256: b99ca8d8bae9c6b43d568218691aa537fb0aeae1d7d34eadf112a6aa36d26506
sha256: "9bf168bccdf179ce90450b5f37e36fe263f591c9338828d6bf09b6f8d0f57f86"
url: "https://pub.dev"
source: hosted
version: "3.11.0"
version: "3.12.0"
win32:
dependency: transitive
description:
Expand Down

0 comments on commit eb778ba

Please sign in to comment.