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
| [ | |
| "https://picsum.photos/id/237/200/300", | |
| "https://picsum.photos/id/238/200/300", | |
| "https://picsum.photos/id/239/200/300", | |
| "https://picsum.photos/id/240/200/300", | |
| "https://picsum.photos/id/241/200/300", | |
| "https://picsum.photos/id/242/200/300", | |
| "https://picsum.photos/id/243/200/300", | |
| "https://picsum.photos/id/244/200/300", | |
| "https://picsum.photos/id/245/200/300", |
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 'dart:async'; | |
| import 'package:flutter/widgets.dart'; | |
| import 'package:path/path.dart'; | |
| import 'package:sqflite/sqflite.dart'; | |
| void main() async { | |
| // Avoid errors caused by flutter upgrade. | |
| // Importing 'package:flutter/widgets.dart' is required. | |
| WidgetsFlutterBinding.ensureInitialized(); |
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 'dart:async'; | |
| import 'dart:convert'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:http/http.dart' as http; | |
| Future<Album> createAlbum(String title) async { | |
| final response = await http.post( | |
| Uri.parse('https://jsonplaceholder.typicode.com/albums'), | |
| headers: <String, String>{ |
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 'dart:async'; | |
| import 'dart:convert'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:http/http.dart' as http; | |
| Future<Album> fetchAlbum() async { | |
| final response = await http | |
| .get(Uri.parse('https://jsonplaceholder.typicode.com/albums/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
| name: Android CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: |
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
| public class ItemContentProvider extends ContentProvider { | |
| @Override | |
| public boolean onCreate() { return true; } | |
| @Nullable | |
| @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
| GlobalScope | |
| coroutineScope | |
| runBlocking | |
| runBlocking 2 | |
| Job | |
| Récupérer la valeur d'un Job | |
| Exception | |
| =============================== | |
| GlobalScope | |
| =============================== |
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
| Dans Unit Test | |
| ============================================ | |
| Database | |
| ============================================ | |
| public class Database { | |
| public boolean isAvailable() { | |
| // currently not implemented, as this is just demo used in a software test | |
| return false; | |
| } |
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
| Sans runTime permission | |
| =================================== | |
| Gradle | |
| =================================== | |
| implementation 'com.android.volley:volley:1.2.1' | |
| =================================== | |
| Manifest |
NewerOlder