├── .gitignore
├── samples_intl_tools
├── lib
│ ├── l10n
│ │ ├── app_es.arb
│ │ └── app_en.arb
│ ├── hello_world.dart
│ ├── intl_localizations_delegate.dart
│ └── main.dart
├── l10n.yaml
├── build.yaml
├── .dart_tool
│ └── flutter_gen
│ │ ├── pubspec.yaml
│ │ └── gen_l10n
│ │ ├── app_localizations_en.dart
│ │ └── app_localizations_es.dart
├── stories
│ └── intl_stories.dart
├── .metadata
├── pubspec.yaml
├── .gitignore
├── README.md
└── analysis_options.yaml
├── samples_easy_localization
├── ios
│ ├── Runner
│ │ ├── Runner-Bridging-Header.h
│ │ ├── Assets.xcassets
│ │ │ ├── LaunchImage.imageset
│ │ │ │ ├── LaunchImage.png
│ │ │ │ ├── LaunchImage@2x.png
│ │ │ │ ├── LaunchImage@3x.png
│ │ │ │ ├── README.md
│ │ │ │ └── Contents.json
│ │ │ └── AppIcon.appiconset
│ │ │ │ ├── Icon-App-20x20@1x.png
│ │ │ │ ├── Icon-App-20x20@2x.png
│ │ │ │ ├── Icon-App-20x20@3x.png
│ │ │ │ ├── Icon-App-29x29@1x.png
│ │ │ │ ├── Icon-App-29x29@2x.png
│ │ │ │ ├── Icon-App-29x29@3x.png
│ │ │ │ ├── Icon-App-40x40@1x.png
│ │ │ │ ├── Icon-App-40x40@2x.png
│ │ │ │ ├── Icon-App-40x40@3x.png
│ │ │ │ ├── Icon-App-60x60@2x.png
│ │ │ │ ├── Icon-App-60x60@3x.png
│ │ │ │ ├── Icon-App-76x76@1x.png
│ │ │ │ ├── Icon-App-76x76@2x.png
│ │ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ │ ├── Icon-App-83.5x83.5@2x.png
│ │ │ │ └── Contents.json
│ │ ├── AppDelegate.swift
│ │ ├── Base.lproj
│ │ │ ├── Main.storyboard
│ │ │ └── LaunchScreen.storyboard
│ │ └── Info.plist
│ ├── Flutter
│ │ ├── Debug.xcconfig
│ │ ├── Release.xcconfig
│ │ └── AppFrameworkInfo.plist
│ ├── Runner.xcodeproj
│ │ ├── project.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ │ └── IDEWorkspaceChecks.plist
│ │ └── xcshareddata
│ │ │ └── xcschemes
│ │ │ └── Runner.xcscheme
│ ├── Runner.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── Podfile.lock
│ ├── .gitignore
│ └── Podfile
├── assets
│ └── translations
│ │ ├── en-US.json
│ │ └── es.json
├── build.yaml
├── android
│ ├── gradle.properties
│ ├── app
│ │ ├── src
│ │ │ ├── main
│ │ │ │ ├── res
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── drawable
│ │ │ │ │ │ └── launch_background.xml
│ │ │ │ │ ├── drawable-v21
│ │ │ │ │ │ └── launch_background.xml
│ │ │ │ │ ├── values
│ │ │ │ │ │ └── styles.xml
│ │ │ │ │ └── values-night
│ │ │ │ │ │ └── styles.xml
│ │ │ │ ├── kotlin
│ │ │ │ │ └── com
│ │ │ │ │ │ └── example
│ │ │ │ │ │ └── easy_localization_sample
│ │ │ │ │ │ └── MainActivity.kt
│ │ │ │ └── AndroidManifest.xml
│ │ │ ├── debug
│ │ │ │ └── AndroidManifest.xml
│ │ │ └── profile
│ │ │ │ └── AndroidManifest.xml
│ │ └── build.gradle
│ ├── gradle
│ │ └── wrapper
│ │ │ └── gradle-wrapper.properties
│ ├── .gitignore
│ ├── settings.gradle
│ └── build.gradle
├── macos
│ ├── .gitignore
│ ├── Runner
│ │ ├── Configs
│ │ │ ├── Debug.xcconfig
│ │ │ ├── Release.xcconfig
│ │ │ ├── Warnings.xcconfig
│ │ │ └── AppInfo.xcconfig
│ │ ├── Assets.xcassets
│ │ │ └── AppIcon.appiconset
│ │ │ │ ├── app_icon_128.png
│ │ │ │ ├── app_icon_16.png
│ │ │ │ ├── app_icon_256.png
│ │ │ │ ├── app_icon_32.png
│ │ │ │ ├── app_icon_512.png
│ │ │ │ ├── app_icon_64.png
│ │ │ │ ├── app_icon_1024.png
│ │ │ │ └── Contents.json
│ │ ├── AppDelegate.swift
│ │ ├── Release.entitlements
│ │ ├── DebugProfile.entitlements
│ │ ├── MainFlutterWindow.swift
│ │ └── Info.plist
│ ├── Flutter
│ │ ├── Flutter-Debug.xcconfig
│ │ ├── Flutter-Release.xcconfig
│ │ └── GeneratedPluginRegistrant.swift
│ ├── Runner.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── Runner.xcodeproj
│ │ ├── project.xcworkspace
│ │ │ └── xcshareddata
│ │ │ │ └── IDEWorkspaceChecks.plist
│ │ └── xcshareddata
│ │ │ └── xcschemes
│ │ │ └── Runner.xcscheme
│ ├── Podfile.lock
│ └── Podfile
├── web
│ ├── favicon.png
│ ├── icons
│ │ ├── Icon-192.png
│ │ └── Icon-512.png
│ ├── manifest.json
│ └── index.html
├── analysis_options.yaml
├── stories
│ └── easy_localization_stories.dart
├── .metadata
├── pubspec.yaml
├── lib
│ ├── localized_widgets.dart
│ ├── main.dart
│ └── easy_localizations_delegate.dart
├── README.md
└── .gitignore
├── _assets
├── themed-screen.png
├── localized-screen.png
└── fetch-complex-list.png
├── samples_booking
├── build.yaml
├── assets
│ ├── hotel
│ │ ├── hotel_1.png
│ │ ├── hotel_2.png
│ │ ├── hotel_3.png
│ │ ├── hotel_4.png
│ │ ├── hotel_5.png
│ │ └── hotel_booking.png
│ └── fonts
│ │ ├── Roboto-Bold.ttf
│ │ ├── Roboto-Medium.ttf
│ │ ├── Roboto-Regular.ttf
│ │ ├── WorkSans-Bold.ttf
│ │ ├── WorkSans-Medium.ttf
│ │ ├── WorkSans-Regular.ttf
│ │ └── WorkSans-SemiBold.ttf
├── analysis_options.yaml
├── .metadata
├── monarch.yaml
├── README.md
├── locale
│ ├── i18n_en.json
│ └── i18n_es.json
├── LICENSE
├── .gitignore
├── pubspec.yaml
├── stories
│ └── booking_stories.dart
└── lib
│ ├── booking
│ ├── model
│ │ ├── popular_filter_list.dart
│ │ └── booking_list_data.dart
│ ├── booking_app_theme.dart
│ └── slider_view.dart
│ ├── localizations.dart
│ └── main.dart
├── samples_patterns
├── build.yaml
├── assets
│ ├── monarch_m.png
│ ├── monarch_m_200.png
│ └── google_fonts
│ │ ├── OpenSans-Bold.ttf
│ │ ├── OpenSans-Light.ttf
│ │ ├── OpenSans-Regular.ttf
│ │ ├── OpenSans-SemiBold.ttf
│ │ ├── OpenSans-BoldItalic.ttf
│ │ ├── OpenSans-ExtraBold.ttf
│ │ ├── OpenSans-LightItalic.ttf
│ │ ├── OpenSans-RegularItalic.ttf
│ │ ├── OpenSans-ExtraBoldItalic.ttf
│ │ └── OpenSans-SemiBoldItalic.ttf
├── analysis_options.yaml
├── locale
│ ├── i18n_en.json
│ └── i18n_es.json
├── lib
│ ├── provider
│ │ ├── current_date.dart
│ │ ├── provider_example_list.dart
│ │ ├── shopping_cart_change_notifier.dart
│ │ ├── provider_screen.dart
│ │ └── change_notifier_screen.dart
│ ├── animations
│ │ ├── lottie
│ │ │ └── lottie_animated_widget.dart
│ │ └── flutter
│ │ │ ├── resizable_box.dart
│ │ │ ├── progress_button.dart
│ │ │ └── collapsable_box.dart
│ ├── bloc
│ │ ├── list_complex
│ │ │ ├── item.dart
│ │ │ ├── list_state.dart
│ │ │ ├── repository.dart
│ │ │ ├── list_cubit.dart
│ │ │ └── list_complex_screen.dart
│ │ ├── bloc_example_list.dart
│ │ └── bloc_counter
│ │ │ └── bloc_counter_screen.dart
│ ├── platform_route.dart
│ ├── dialogs
│ │ ├── scaffold_messenger.dart
│ │ ├── bottom_sheet.dart
│ │ └── alert_dialog.dart
│ ├── navigation
│ │ ├── simple_navigation.dart
│ │ └── named_routes.dart
│ ├── themes
│ │ ├── custom_theme.dart
│ │ └── themed_screen.dart
│ ├── text_fields
│ │ ├── obscurable_text_field.dart
│ │ └── single_value_text_field.dart
│ ├── internationalization
│ │ ├── localized_screen.dart
│ │ └── localizations.dart
│ ├── content_list
│ │ ├── animated_tap.dart
│ │ └── content_list_screen.dart
│ └── main.dart
├── stories
│ ├── themed_screen_stories.dart
│ ├── internationalization_stories.dart
│ ├── scaffold_messenger_stories.dart
│ ├── bloc_counter_view_stories.dart
│ ├── obscurable_text_field_stories.dart
│ ├── content_list_screen_stories.dart
│ ├── images_stories.dart
│ ├── mocked_repository.dart
│ ├── provider_screen_stories.dart
│ ├── animations_stories.dart
│ ├── navigation_stories.dart
│ ├── main_stories.dart
│ ├── provider_change_notifier_screen_stories.dart
│ ├── provider_navigation_stories.dart
│ ├── dialog_stories.dart
│ └── bloc_complex_list_stories.dart
├── .metadata
├── README.md
├── .gitignore
├── pubspec.yaml
└── test
│ └── obscurable_text_field_test.dart
├── samples_riverpod
├── build.yaml
├── .metadata
├── lib
│ ├── main.dart
│ └── hello_world.dart
├── README.md
├── pubspec.yaml
├── stories
│ └── riverpod_stories.dart
├── .gitignore
└── analysis_options.yaml
├── test
├── README.md
├── pubspec.yaml
├── .gitignore
├── samples_test.dart
└── test_utils.dart
└── README.md
/.gitignore:
--------------------------------------------------------------------------------
1 | */pubspec.lock
--------------------------------------------------------------------------------
/samples_intl_tools/lib/l10n/app_es.arb:
--------------------------------------------------------------------------------
1 | {
2 | "helloWorld": "¡Hola Mundo!"
3 | }
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/_assets/themed-screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/_assets/themed-screen.png
--------------------------------------------------------------------------------
/_assets/localized-screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/_assets/localized-screen.png
--------------------------------------------------------------------------------
/_assets/fetch-complex-list.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/_assets/fetch-complex-list.png
--------------------------------------------------------------------------------
/samples_booking/build.yaml:
--------------------------------------------------------------------------------
1 | targets:
2 | $default:
3 | sources:
4 | - $package$
5 | - lib/**
6 | - stories/**
--------------------------------------------------------------------------------
/samples_intl_tools/l10n.yaml:
--------------------------------------------------------------------------------
1 | arb-dir: lib/l10n
2 | template-arb-file: app_en.arb
3 | output-localization-file: app_localizations.dart
--------------------------------------------------------------------------------
/samples_patterns/build.yaml:
--------------------------------------------------------------------------------
1 | targets:
2 | $default:
3 | sources:
4 | - $package$
5 | - lib/**
6 | - stories/**
--------------------------------------------------------------------------------
/samples_riverpod/build.yaml:
--------------------------------------------------------------------------------
1 | targets:
2 | $default:
3 | sources:
4 | - $package$
5 | - lib/**
6 | - stories/**
--------------------------------------------------------------------------------
/samples_easy_localization/assets/translations/en-US.json:
--------------------------------------------------------------------------------
1 | {
2 | "title": "Hello World",
3 | "question": "Is it lunch time?"
4 | }
--------------------------------------------------------------------------------
/samples_intl_tools/build.yaml:
--------------------------------------------------------------------------------
1 | targets:
2 | $default:
3 | sources:
4 | - $package$
5 | - lib/**
6 | - stories/**
--------------------------------------------------------------------------------
/samples_patterns/assets/monarch_m.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_patterns/assets/monarch_m.png
--------------------------------------------------------------------------------
/samples_booking/assets/hotel/hotel_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_booking/assets/hotel/hotel_1.png
--------------------------------------------------------------------------------
/samples_booking/assets/hotel/hotel_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_booking/assets/hotel/hotel_2.png
--------------------------------------------------------------------------------
/samples_booking/assets/hotel/hotel_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_booking/assets/hotel/hotel_3.png
--------------------------------------------------------------------------------
/samples_booking/assets/hotel/hotel_4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_booking/assets/hotel/hotel_4.png
--------------------------------------------------------------------------------
/samples_booking/assets/hotel/hotel_5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_booking/assets/hotel/hotel_5.png
--------------------------------------------------------------------------------
/samples_easy_localization/assets/translations/es.json:
--------------------------------------------------------------------------------
1 | {
2 | "title": "Hola Mundo",
3 | "question": "¿Es la hora del almuerzo?"
4 | }
--------------------------------------------------------------------------------
/samples_easy_localization/build.yaml:
--------------------------------------------------------------------------------
1 | targets:
2 | $default:
3 | sources:
4 | - $package$
5 | - lib/**
6 | - stories/**
--------------------------------------------------------------------------------
/samples_easy_localization/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/samples_easy_localization/macos/.gitignore:
--------------------------------------------------------------------------------
1 | # Flutter-related
2 | **/Flutter/ephemeral/
3 | **/Pods/
4 |
5 | # Xcode-related
6 | **/xcuserdata/
7 |
--------------------------------------------------------------------------------
/samples_easy_localization/macos/Runner/Configs/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Debug.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/samples_easy_localization/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/web/favicon.png
--------------------------------------------------------------------------------
/samples_patterns/assets/monarch_m_200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_patterns/assets/monarch_m_200.png
--------------------------------------------------------------------------------
/samples_booking/assets/fonts/Roboto-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_booking/assets/fonts/Roboto-Bold.ttf
--------------------------------------------------------------------------------
/samples_easy_localization/macos/Runner/Configs/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Release.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/samples_patterns/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:lints/recommended.yaml
2 |
3 | linter:
4 | rules:
5 | non_constant_identifier_names: false
--------------------------------------------------------------------------------
/test/README.md:
--------------------------------------------------------------------------------
1 | Integration tests to verify that the monarch samples projects work
2 | with the latest Flutter SDK and the latest Monarch versions.
3 |
--------------------------------------------------------------------------------
/samples_booking/assets/fonts/Roboto-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_booking/assets/fonts/Roboto-Medium.ttf
--------------------------------------------------------------------------------
/samples_booking/assets/fonts/Roboto-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_booking/assets/fonts/Roboto-Regular.ttf
--------------------------------------------------------------------------------
/samples_booking/assets/fonts/WorkSans-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_booking/assets/fonts/WorkSans-Bold.ttf
--------------------------------------------------------------------------------
/samples_booking/assets/fonts/WorkSans-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_booking/assets/fonts/WorkSans-Medium.ttf
--------------------------------------------------------------------------------
/samples_booking/assets/hotel/hotel_booking.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_booking/assets/hotel/hotel_booking.png
--------------------------------------------------------------------------------
/samples_easy_localization/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/samples_easy_localization/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/samples_booking/assets/fonts/WorkSans-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_booking/assets/fonts/WorkSans-Regular.ttf
--------------------------------------------------------------------------------
/samples_booking/assets/fonts/WorkSans-SemiBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_booking/assets/fonts/WorkSans-SemiBold.ttf
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/samples_patterns/assets/google_fonts/OpenSans-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_patterns/assets/google_fonts/OpenSans-Bold.ttf
--------------------------------------------------------------------------------
/samples_patterns/assets/google_fonts/OpenSans-Light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_patterns/assets/google_fonts/OpenSans-Light.ttf
--------------------------------------------------------------------------------
/samples_patterns/assets/google_fonts/OpenSans-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_patterns/assets/google_fonts/OpenSans-Regular.ttf
--------------------------------------------------------------------------------
/samples_patterns/assets/google_fonts/OpenSans-SemiBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_patterns/assets/google_fonts/OpenSans-SemiBold.ttf
--------------------------------------------------------------------------------
/samples_intl_tools/.dart_tool/flutter_gen/pubspec.yaml:
--------------------------------------------------------------------------------
1 | # Generated by the flutter tool
2 | name: synthetic_package
3 | description: The Flutter application's synthetic package.
4 |
--------------------------------------------------------------------------------
/samples_patterns/assets/google_fonts/OpenSans-BoldItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_patterns/assets/google_fonts/OpenSans-BoldItalic.ttf
--------------------------------------------------------------------------------
/samples_patterns/assets/google_fonts/OpenSans-ExtraBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_patterns/assets/google_fonts/OpenSans-ExtraBold.ttf
--------------------------------------------------------------------------------
/samples_patterns/assets/google_fonts/OpenSans-LightItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_patterns/assets/google_fonts/OpenSans-LightItalic.ttf
--------------------------------------------------------------------------------
/samples_patterns/assets/google_fonts/OpenSans-RegularItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_patterns/assets/google_fonts/OpenSans-RegularItalic.ttf
--------------------------------------------------------------------------------
/samples_intl_tools/lib/l10n/app_en.arb:
--------------------------------------------------------------------------------
1 | {
2 | "helloWorld": "Hello World!",
3 | "@helloWorld": {
4 | "description": "The conventional newborn programmer greeting"
5 | }
6 | }
--------------------------------------------------------------------------------
/samples_patterns/assets/google_fonts/OpenSans-ExtraBoldItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_patterns/assets/google_fonts/OpenSans-ExtraBoldItalic.ttf
--------------------------------------------------------------------------------
/samples_patterns/assets/google_fonts/OpenSans-SemiBoldItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_patterns/assets/google_fonts/OpenSans-SemiBoldItalic.ttf
--------------------------------------------------------------------------------
/samples_easy_localization/macos/Flutter/Flutter-Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "ephemeral/Flutter-Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/samples_booking/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:flutter_lints/flutter.yaml
2 |
3 | linter:
4 | rules:
5 | non_constant_identifier_names: false
6 | prefer_const_constructors: false
7 |
--------------------------------------------------------------------------------
/samples_easy_localization/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:lints/recommended.yaml
2 |
3 | linter:
4 | rules:
5 | non_constant_identifier_names: false
6 | implementation_imports: false
--------------------------------------------------------------------------------
/samples_easy_localization/macos/Flutter/Flutter-Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "ephemeral/Flutter-Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/samples_intl_tools/stories/intl_stories.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:monarch_samples_intl_tools/hello_world.dart';
3 |
4 | Widget helloWorld() => const HelloWorld();
5 |
--------------------------------------------------------------------------------
/samples_easy_localization/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/samples_easy_localization/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/samples_easy_localization/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/samples_easy_localization/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/samples_easy_localization/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/samples_patterns/locale/i18n_en.json:
--------------------------------------------------------------------------------
1 | {
2 | "sample.title": "Translations example",
3 | "sample.headline": "Translated Title",
4 | "sample.subheader": "This is a subtitle",
5 | "sample.content": "Example content"
6 | }
7 |
--------------------------------------------------------------------------------
/samples_patterns/locale/i18n_es.json:
--------------------------------------------------------------------------------
1 | {
2 | "sample.title": "Ejemplo de traducción",
3 | "sample.headline": "Título traducido",
4 | "sample.subheader": "Esto es un subtítulo",
5 | "sample.content": "Contenido de ejemplo"
6 | }
7 |
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/samples_easy_localization/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
--------------------------------------------------------------------------------
/samples_easy_localization/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
--------------------------------------------------------------------------------
/samples_easy_localization/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
--------------------------------------------------------------------------------
/samples_easy_localization/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
--------------------------------------------------------------------------------
/samples_easy_localization/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
--------------------------------------------------------------------------------
/samples_easy_localization/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/samples_easy_localization/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dropsource/monarch_samples/HEAD/samples_easy_localization/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/samples_patterns/lib/provider/current_date.dart:
--------------------------------------------------------------------------------
1 | class CurrentDate {
2 | final Function? currentDateFn;
3 |
4 | CurrentDate({this.currentDateFn});
5 |
6 | String? currentDateAsString() {
7 | return currentDateFn!();
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/samples_easy_localization/android/app/src/main/kotlin/com/example/easy_localization_sample/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.easy_localization_sample
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/samples_patterns/stories/themed_screen_stories.dart:
--------------------------------------------------------------------------------
1 | // ignore_for_file: non_constant_identifier_names
2 | import 'package:flutter/widgets.dart';
3 | import 'package:monarch_samples_patterns/themes/themed_screen.dart';
4 |
5 | Widget themed_screen_example() => ThemedScreen();
6 |
--------------------------------------------------------------------------------
/samples_patterns/stories/internationalization_stories.dart:
--------------------------------------------------------------------------------
1 | // ignore_for_file: non_constant_identifier_names
2 | import 'package:flutter/widgets.dart';
3 | import 'package:monarch_samples_patterns/internationalization/localized_screen.dart';
4 |
5 | Widget localized_screen() => LocalizedScreen();
6 |
--------------------------------------------------------------------------------
/test/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: monarch_samples_test
2 | description: Integration tests for monarch_samples
3 | version: 1.0.0
4 |
5 | environment:
6 | sdk: '>=2.16.1 <4.0.0'
7 |
8 | dev_dependencies:
9 | test_process:
10 | path:
11 | async:
12 | monarch_utils:
13 | monarch_io_utils:
14 |
--------------------------------------------------------------------------------
/samples_easy_localization/macos/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | @NSApplicationMain
5 | class AppDelegate: FlutterAppDelegate {
6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
7 | return true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/samples_easy_localization/stories/easy_localization_stories.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:monarch_easy_localization_sample/localized_widgets.dart';
3 |
4 | Widget title() => LocalizedTitle();
5 | Widget question() => LocalizedQuestion();
6 | Widget upper() => UpperLocalizedTitle();
7 |
--------------------------------------------------------------------------------
/samples_patterns/stories/scaffold_messenger_stories.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:monarch_samples_patterns/dialogs/scaffold_messenger.dart';
3 |
4 | Widget scaffold_messenger_app() => ScaffoldMessengerExampleApp();
5 |
6 | Widget scaffold_messenger() => ScaffoldMessengerExample();
7 |
--------------------------------------------------------------------------------
/samples_easy_localization/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
7 |
--------------------------------------------------------------------------------
/samples_easy_localization/macos/Runner/Release.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/samples_easy_localization/macos/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/samples_easy_localization/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/samples_easy_localization/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 |
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/samples_intl_tools/.dart_tool/flutter_gen/gen_l10n/app_localizations_en.dart:
--------------------------------------------------------------------------------
1 | import 'app_localizations.dart';
2 |
3 | /// The translations for English (`en`).
4 | class AppLocalizationsEn extends AppLocalizations {
5 | AppLocalizationsEn([String locale = 'en']) : super(locale);
6 |
7 | @override
8 | String get helloWorld => 'Hello World!';
9 | }
10 |
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/samples_easy_localization/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/samples_booking/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: 18116933e77adc82f80866c928266a5b4f1ed645
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/samples_intl_tools/.dart_tool/flutter_gen/gen_l10n/app_localizations_es.dart:
--------------------------------------------------------------------------------
1 | import 'app_localizations.dart';
2 |
3 | /// The translations for Spanish Castilian (`es`).
4 | class AppLocalizationsEs extends AppLocalizations {
5 | AppLocalizationsEs([String locale = 'es']) : super(locale);
6 |
7 | @override
8 | String get helloWorld => '¡Hola Mundo!';
9 | }
10 |
--------------------------------------------------------------------------------
/samples_patterns/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: c5a4b4029c0798f37c4a39b479d7cb75daa7b05c
8 | channel: unknown
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/samples_riverpod/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: cf4400006550b70f28e4b4af815151d1e74846c6
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/samples_intl_tools/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: cf4400006550b70f28e4b4af815151d1e74846c6
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/samples_easy_localization/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: 1d9032c7e1d867f071f2277eb1673e8f9b0274e3
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/samples_easy_localization/macos/Flutter/GeneratedPluginRegistrant.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | import FlutterMacOS
6 | import Foundation
7 |
8 | import shared_preferences_foundation
9 |
10 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
11 | SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
12 | }
13 |
--------------------------------------------------------------------------------
/samples_intl_tools/lib/hello_world.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/widgets.dart';
2 | import 'package:flutter_gen/gen_l10n/app_localizations.dart';
3 |
4 | class HelloWorld extends StatelessWidget {
5 | const HelloWorld({Key? key}) : super(key: key);
6 | @override
7 | Widget build(BuildContext context) {
8 | return Center(child: Text(AppLocalizations.of(context)!.helloWorld));
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/samples_riverpod/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_riverpod/flutter_riverpod.dart';
3 | import 'package:samples_riverpod/hello_world.dart';
4 |
5 | void main() {
6 | runApp(
7 | ProviderScope(
8 | child: Scaffold(
9 | appBar: AppBar(title: const Text('Monarch + Riverpod Example')),
10 | body: const HelloWorld()),
11 | ),
12 | );
13 | }
14 |
--------------------------------------------------------------------------------
/samples_easy_localization/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/samples_easy_localization/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/samples_intl_tools/lib/intl_localizations_delegate.dart:
--------------------------------------------------------------------------------
1 | import 'package:monarch_annotations/monarch_annotations.dart';
2 | import 'package:flutter_gen/gen_l10n/app_localizations.dart';
3 |
4 | /// The MonarchLocale items you declare here will show up in the Monarch
5 | /// UI. You can then test your stories using these locales.
6 | @MonarchLocalizations([MonarchLocale('en'), MonarchLocale('es')])
7 | const myDelegate = AppLocalizations.delegate;
8 |
--------------------------------------------------------------------------------
/samples_easy_localization/macos/Runner/DebugProfile.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 | com.apple.security.cs.allow-jit
8 |
9 | com.apple.security.network.server
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/samples_patterns/stories/bloc_counter_view_stories.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/widgets.dart';
2 | import 'package:flutter_bloc/flutter_bloc.dart';
3 | import 'package:monarch_samples_patterns/bloc/bloc_counter/bloc_counter_screen.dart';
4 |
5 | Widget zero() =>
6 | BlocProvider.value(value: CounterCubit(), child: BlocCounterView());
7 |
8 | Widget nonzero() => BlocProvider.value(
9 | value: CounterCubit(initialState: 100), child: BlocCounterView());
10 |
--------------------------------------------------------------------------------
/samples_patterns/stories/obscurable_text_field_stories.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:monarch_samples_patterns/text_fields/obscurable_text_field.dart';
3 |
4 | Widget obscured_text() => ObscurableTextfield(
5 | value: 'P@ssw0rd!',
6 | );
7 |
8 | Widget clear_text() => ObscurableTextfield(
9 | value: 'P@ssw0rd!',
10 | obscureText: false,
11 | );
12 |
13 | Widget empty_text() => ObscurableTextfield();
14 |
--------------------------------------------------------------------------------
/samples_riverpod/README.md:
--------------------------------------------------------------------------------
1 | # monarch_samples_riverpod
2 |
3 | Monarch sample code and stories using [Riverpod](https://riverpod.dev/).
4 |
5 | _Monarch is a tool for building Flutter widgets in isolation. It makes it easy to build, test and debug complex UIs. Find out more at https://monarchapp.io_
6 |
7 | ## Running the sample stories
8 |
9 | 1. Make sure you already have Monarch [installed](https://monarchapp.io/docs/install).
10 | 2. `flutter pub get`
11 | 3. `monarch run`
12 |
--------------------------------------------------------------------------------
/samples_booking/monarch.yaml:
--------------------------------------------------------------------------------
1 | devices:
2 | - id: iphone-16-pro
3 | name: iPhone 16 Pro
4 | height: 874
5 | width: 402
6 | device_pixel_ratio: 3
7 | platform: ios
8 | - id: android-pixel-7
9 | name: Google Pixel 7
10 | height: 923
11 | width: 415
12 | device_pixel_ratio: 2.6
13 | platform: android
14 | - id: large-screen-01
15 | name: Large Screen 01
16 | height: 1080
17 | width: 1920
18 | device_pixel_ratio: 1
19 | platform: macos
--------------------------------------------------------------------------------
/samples_riverpod/lib/hello_world.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/widgets.dart';
2 | import 'package:flutter_riverpod/flutter_riverpod.dart';
3 |
4 | final helloWorldProvider = Provider((_) => 'Hello world');
5 |
6 | class HelloWorld extends ConsumerWidget {
7 | const HelloWorld({Key? key}) : super(key: key);
8 | @override
9 | Widget build(BuildContext context, WidgetRef ref) {
10 | final String value = ref.watch(helloWorldProvider);
11 | return Center(child: Text(value));
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/samples_easy_localization/macos/Runner/MainFlutterWindow.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | class MainFlutterWindow: NSWindow {
5 | override func awakeFromNib() {
6 | let flutterViewController = FlutterViewController.init()
7 | let windowFrame = self.frame
8 | self.contentViewController = flutterViewController
9 | self.setFrame(windowFrame, display: true)
10 |
11 | RegisterGeneratedPlugins(registry: flutterViewController)
12 |
13 | super.awakeFromNib()
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/samples_booking/README.md:
--------------------------------------------------------------------------------
1 | # monarch_samples_booking
2 |
3 | Monarch sample code and stories using a pretty booking theme. The
4 | [Monarch website](https://monarchapp.io/) showcases this project.
5 |
6 | The booking theme is based on one of the templates in
7 | [Best-Flutter-UI-Templates](https://github.com/mitesh77/Best-Flutter-UI-Templates).
8 |
9 | ## Running the sample stories
10 |
11 | 1. Make sure you already have Monarch [installed](https://monarchapp.io/docs/install).
12 | 2. `flutter pub get`
13 | 3. `monarch run`
14 |
--------------------------------------------------------------------------------
/samples_easy_localization/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/samples_easy_localization/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/samples_riverpod/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: samples_riverpod
2 | description: Monarch sample code and stories using Riverpod.
3 | publish_to: 'none'
4 |
5 | version: 1.0.0
6 |
7 | environment:
8 | sdk: ">=2.15.0 <3.0.0"
9 | flutter: ">=2.0.0"
10 |
11 | dependencies:
12 | flutter:
13 | sdk: flutter
14 | flutter_riverpod: ^2.3.6
15 | cupertino_icons: ^1.0.2
16 |
17 | dev_dependencies:
18 | flutter_test:
19 | sdk: flutter
20 | flutter_lints: ^2.0.1
21 | monarch: ^3.0.0
22 | build_runner: ^2.1.11
23 |
24 | flutter:
25 | uses-material-design: true
--------------------------------------------------------------------------------
/samples_easy_localization/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/samples_intl_tools/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:monarch_samples_intl_tools/hello_world.dart';
3 |
4 | void main() {
5 | runApp(const MyApp());
6 | }
7 |
8 | class MyApp extends StatelessWidget {
9 | const MyApp({Key? key}) : super(key: key);
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | return MaterialApp(
14 | title: 'Monarch intl tools sample',
15 | theme: ThemeData(
16 | primarySwatch: Colors.blue,
17 | ),
18 | home: const HelloWorld(),
19 | );
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/samples_booking/locale/i18n_en.json:
--------------------------------------------------------------------------------
1 | {
2 | "type-of-accommodation": "Type of accommodation",
3 | "distance-from-center": "Distance from city center",
4 | "popular-filters": "Popular filters",
5 | "price-1-night": "Price (for 1 night)",
6 | "filters": "Filters",
7 | "free-breakfast": "Free Breakfast",
8 | "free-parking": "Free Parking",
9 | "free-wi-fi": "Free Wi-Fi",
10 | "pool": "Pool",
11 | "pet-friendly": "Pet Friendly",
12 | "all": "All",
13 | "apartment": "Apartment",
14 | "home": "Home",
15 | "hotel": "Hotel",
16 | "resort": "Resort",
17 | "villa": "Villa",
18 | "less-than": "Less than"
19 | }
--------------------------------------------------------------------------------
/samples_patterns/lib/animations/lottie/lottie_animated_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:lottie/lottie.dart';
3 |
4 | class LottieAnimatedWidget extends StatelessWidget {
5 | @override
6 | Widget build(BuildContext context) {
7 | return Container(
8 | padding: EdgeInsets.all(16),
9 | child: Column(
10 | children: [
11 | Text('This is Lottie Animation from assets'),
12 | SizedBox(
13 | height: 16,
14 | ),
15 | Lottie.asset('assets/LottieLogo1.json'),
16 | ],
17 | ),
18 | );
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/samples_booking/locale/i18n_es.json:
--------------------------------------------------------------------------------
1 | {
2 | "type-of-accommodation": "Tipo de hospedaje",
3 | "distance-from-center": "Distancia del centro",
4 | "popular-filters": "Filtros populares",
5 | "price-1-night": "Precio (por 1 noche)",
6 | "filters": "Filtros",
7 | "free-breakfast": "Desayuno Gratis",
8 | "free-parking": "Parqueo Gratis",
9 | "free-wi-fi": "Wi-Fi Gratis",
10 | "pool": "Piscina",
11 | "pet-friendly": "Acepta mascotas",
12 | "all": "Todos",
13 | "apartment": "Departamento",
14 | "home": "Hogar",
15 | "hotel": "Hotel",
16 | "resort": "Resort",
17 | "villa": "Villa",
18 | "less-than": "Menos de"
19 | }
--------------------------------------------------------------------------------
/samples_intl_tools/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: monarch_samples_intl_tools
2 | description: Monarch sample code and stories using intl package and tools
3 |
4 | publish_to: 'none'
5 |
6 | version: 1.0.0
7 |
8 | environment:
9 | sdk: ">=2.15.0 <3.0.0"
10 |
11 | dependencies:
12 | flutter:
13 | sdk: flutter
14 | flutter_localizations:
15 | sdk: flutter
16 | intl: ^0.18.0
17 |
18 | cupertino_icons: ^1.0.2
19 |
20 | dev_dependencies:
21 | flutter_test:
22 | sdk: flutter
23 |
24 | flutter_lints: ^2.0.1
25 | monarch: ^3.0.0
26 | build_runner: ^2.1.11
27 |
28 | flutter:
29 | generate: true
30 | uses-material-design: true
31 |
--------------------------------------------------------------------------------
/samples_easy_localization/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Flutter (1.0.0)
3 | - shared_preferences (0.0.1):
4 | - Flutter
5 |
6 | DEPENDENCIES:
7 | - Flutter (from `Flutter`)
8 | - shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
9 |
10 | EXTERNAL SOURCES:
11 | Flutter:
12 | :path: Flutter
13 | shared_preferences:
14 | :path: ".symlinks/plugins/shared_preferences/ios"
15 |
16 | SPEC CHECKSUMS:
17 | Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
18 | shared_preferences: 5033afbb22d372e15aff8ff766df9021b845f273
19 |
20 | PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
21 |
22 | COCOAPODS: 1.10.0
23 |
--------------------------------------------------------------------------------
/samples_patterns/lib/bloc/list_complex/item.dart:
--------------------------------------------------------------------------------
1 | import 'package:equatable/equatable.dart';
2 |
3 | class Item extends Equatable {
4 | const Item({
5 | required this.id,
6 | required this.value,
7 | this.isDeleting = false,
8 | });
9 |
10 | final String id;
11 | final String value;
12 | final bool isDeleting;
13 |
14 | Item copyWith({String? id, String? value, bool? isDeleting}) {
15 | return Item(
16 | id: id ?? this.id,
17 | value: value ?? this.value,
18 | isDeleting: isDeleting ?? this.isDeleting,
19 | );
20 | }
21 |
22 | @override
23 | List