From 889218cc76de14d2fdfeaaf029b5ad38e6c6bcc9 Mon Sep 17 00:00:00 2001 From: Nikodem Bernat Date: Sun, 8 Sep 2024 00:09:18 +0200 Subject: [PATCH] Update README.md --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 003976a..262fed9 100644 --- a/README.md +++ b/README.md @@ -60,14 +60,18 @@ class AppPreferences extends BaseAppPreferences { currentUser, ]; } +``` +```dart // Sample enum. enum FontSize { small, medium, large, } +``` +```dart // Sample custom object. class User { const User({required this.name}); @@ -97,7 +101,7 @@ Future main() async { 3. Provide and use it everywhere in your app: -- `provider` +- using `provider` ```dart // Provide @@ -119,7 +123,7 @@ final fontSize = context.select( ); ``` -- Global instance +- using a global instance ```dart // Declare