Skip to content

Instantly share code, notes, and snippets.

View minhcasi's full-sized avatar
🎯
Focusing

Minh Pham minhcasi

🎯
Focusing
  • https://inspireui.com
  • US
View GitHub Profile
watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache
@minhcasi
minhcasi / clean-cache.md
Last active April 7, 2020 07:33
React Native CleanCache

Clean Cache on Window

watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache

Clean Cache on macOs

watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache
After upgrade to flutter 1.7 by using "flutter upgrade" you may have some issue with the cache issue, as new Flutter version change the way of buil the XCode project. Please try one of following solutions to clean cache and update the Pod libraries:
SOLUTION 1:
---------------------------
1. Clean up Flutter cache:
$ flutter clean
2. Go to ios folder:
$ sudo gem install cocoapods-deintegrate cocoapods-clean
@minhcasi
minhcasi / Flutter Clean.md
Last active August 11, 2024 18:37
These are common issues on Flutter and solutions to fix

Quick Clean Cache

  1. Open android studio Tools->Flutter->Clean
  2. Go to File -> Invalidate Caches / Restart
  3. Or open terminal run "flutter clean"
  4. Remove pubspec.lock
  5. Double check the Flutter SDK Path config correcty - https://tppr.me/qn6dP

Or open the terminal and try this script:

flutter clean
@minhcasi
minhcasi / AndroidManifest.xml
Last active June 29, 2024 17:36
How to build Flutter Instant app with FluxStore
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:dist="http://schemas.android.com/apk/distribution"
android:targetSandboxVersion="2"
package="com.inspireui.fluxstore">
<!-- The following declaration enables this module to be served instantly -->
<dist:module dist:instant="true"></dist:module>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
@minhcasi
minhcasi / index.html
Last active June 29, 2023 22:01 — forked from jcollins-g/index.html
Sunflower
<!-- Copyright 2011 the Dart project authors. All rights reserved.
Use of this source code is governed by a BSD-style license
that can be found in the LICENSE file. -->
<h2>InspireUI Test Dart 12333</h2>
<h2>Dr. Fibonacci's</h2>
<div>
<canvas id="canvas" width="300" height="300"></canvas>
</div>
@minhcasi
minhcasi / main.dart
Created January 8, 2024 08:27
Generated code from pixels2flutter.dev
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@minhcasi
minhcasi / main.dart
Created January 8, 2024 08:30
Generated code from pixels2flutter.dev
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@minhcasi
minhcasi / main.dart
Created January 8, 2024 08:35
Generated code from pixels2flutter.dev
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@minhcasi
minhcasi / main.dart
Created January 8, 2024 08:40
Generated code from pixels2flutter.dev
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(