This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // OnboardingService Usage Examples | |
| // Based on abis_recipes Flutter app implementation | |
| import 'package:flutter/material.dart'; | |
| import 'package:services/onboarding_service.dart'; | |
| /// Complete example showing how to implement onboarding tips in your Flutter app | |
| class OnboardingExamplePage extends StatefulWidget { | |
| @override | |
| _OnboardingExamplePageState createState() => _OnboardingExamplePageState(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:sproutly/core/logger_service.dart'; | |
| import 'package:sproutly/env.dart'; | |
| import 'package:zohodesk_portal_apikit/common/ZDPortalAPIKitConstants.dart'; | |
| import 'package:zohodesk_portal_apikit/zohodesk_portal_apikit.dart' show ZohodeskPortalApikit; | |
| import 'package:zohodesk_portal_chat/zohodesk_portal_chat.dart' show ZDPortalChat; | |
| class ZohoChatSupport extends StatefulWidget { | |
| const ZohoChatSupport({super.key}); | |
| @override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| allprojects { | |
| repositories { | |
| google() | |
| mavenCentral() | |
| } | |
| } | |
| rootProject.buildDir = '../build' | |
| subprojects { | |
| afterEvaluate { project -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:freezed_annotation/freezed_annotation.dart'; | |
| part 'request_state.freezed.dart'; | |
| /// Example demonstrating the usage of the `RequestState` class with Riverpod and `Notifier`. | |
| /// | |
| /// This example shows how to handle network requests using a custom `RequestState` class | |
| /// with different states (initial, loading, failed, and success) and Riverpod's `Notifier`. | |
| /// | |
| /// Usage: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main(){ | |
| print("Hello world); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() { | |
| for (int i = 0; i < 5; i++) { | |
| print('hello ${i + 1}'); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
| // This example demonstrates a more reactive approach to creating a TextField. | |
| // this approach saves you from having to mess with controllers and StatefulWidgets. | |
| // Instead you can use your own state management solution. | |
| // Stephan(https://twitter.com/SEGVeenstra) showcased this using Flutter Bloc(https://dartpad.dev/?id=614b3f4ad618e39ee8cb3f20ab9c0801), | |
| //and I'll show how to achieve the same with Riverpod. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "editor.fontLigatures": true, | |
| "dart.maxLogLineLength": 100000, | |
| "[dart]": { | |
| "editor.formatOnSave": true, | |
| "editor.formatOnType": true, | |
| "editor.rulers": [ | |
| 80 | |
| ], |