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
# Provider Package in Flutter (Google supported) | |
### Has Three part: | |
#### 1. Model or Subject or Bloc or Provider (sometimes extended from ChangeNotifier ): | |
Where State dependent model or variables will be stored | |
and will be changed | |
and notify the observers/Consumers/Listeners with changeListener() | |
#### 2. Provider(obj) / ChangeNotifierProvider : |
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
-  `#DCE1E8` | |
-  `#c5f015` | |
-  `#1589F0` |
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
# Basic Stream: | |
## Stream is same as Observable in Rx | |
### create a new stream | |
#### never forgot to close a stream in dispose | |
``` | |
var mStream = new StreamController(); | |
``` | |
with fixed type: |
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
## Flutter Cli: | |
### Flutter Create a project: | |
``` | |
Flutter create project-name | |
``` | |
### Flutter create a project with package-name defined: | |
``` | |
flutter create --org com.domain project_name | |
``` |
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
### Search Item from List: | |
#### Script: | |
``` | |
private List<OutletItem> mOutletList; | |
Observable.fromIterable(mOutletList) | |
.filter((OutletItem item) -> { | |
return item.getNAME().toLowerCase().contains(String.valueOf(s).toLowerCase()); | |
}) |
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
### Vue Cheat Sheet | |
## Vue Create new Project | |
``` | |
vue create hello-world | |
``` | |
## There is an easy way to create and customize a Vue project using Vue UI | |
``` | |
vue ui |
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
# Jquery Cheat Sheet | |
### collected from | |
https://htmlcheatsheet.com/jquery/ | |
## Include: | |
### Minified version: | |
``` | |
<script | |
src="https://code.jquery.com/jquery-3.4.1.min.js" | |
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" |
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
## Themeleaf | |
### initializaion: | |
``` | |
xmlns:th="http://www.thymeleaf.org" | |
``` | |
## Quick Summary: | |
``` |