What do you want to save?
Add Code snippet
New code examples
-
Other 2022-01-27 20:46:47
set orientation to landscape flutter
import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; void main() { // We need to call it manually, // because we going to call setPreferredOrientations() // before the runApp() call WidgetsFlutterBinding.ensureInitializ... Add solution -
Other 2021-11-14 07:49:22
promise-assist
import { retry } from 'promise-assist'; // with default options retry(() => fetch('http://some-url/asset.json')) .then((value) => value.json()) .then(console.log) .catch((e) => console.error(e)); // with custom options retry(() => fetc... Add solution -
Other 2021-09-26 11:39:04
expo location background example
import * as Location from 'expo-location'; import * as TaskManager from 'expo-task-manager'; import axios from 'axios'; const TASK_FETCH_LOCATION = 'TASK_FETCH_LOCATION'; // 1 define the task passing its name and a callback that will be called whenever ... Add solution
Best helpers
Ranking is empty