Skip to content

Instantly share code, notes, and snippets.

View fonkamloic's full-sized avatar
💭
Preparing for AWS Certifier DevOps Cert🎯

Loïc Fonkam fonkamloic

💭
Preparing for AWS Certifier DevOps Cert🎯
View GitHub Profile
@fonkamloic
fonkamloic / resources.md
Created February 3, 2022 18:43 — forked from whiplashoo/resources.md
Resources from "Building a native-looking desktop app with Flutter for macOS and Windows" from FlutterVikings February 2022
@fonkamloic
fonkamloic / main.dart
Created October 26, 2021 20:41
Experimenting on Stream with isolates in flutter
import 'dart:async';
import 'dart:isolate';
import 'package:flutter/material.dart';
void computeIsolate(Message message) {
Stream<int> streamcompute(numb) async* {
for (var i = 0; i < numb; i++) {
yield i;
}
@fonkamloic
fonkamloic / main.dart
Last active September 27, 2021 06:44
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
[ +91 ms] executing: [/Users/owner/development/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +58 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] b1395592de68cc8ac4522094ae59956dd21a91db
[ ] executing: [/Users/owner/development/flutter/] git tag --points-at b1395592de68cc8ac4522094ae59956dd21a91db
[ +22 ms] Exit code 0 from: git tag --points-at b1395592de68cc8ac4522094ae59956dd21a91db
[ ] 2.0.4
[ +49 ms] executing: [/Users/owner/development/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +13 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/stable
[ ] executing: [/Users/owner/development/flutter/] git ls-remote --get-url origin
@fonkamloic
fonkamloic / translations.i18n
Last active November 13, 2020 23:46
translation file
import 'package:i18n_extension/i18n_extension.dart';
extension Localization on String {
static var _t = Translations.byLocale("fr_fr") +
{
"en_US": {
"SAVE YOUR MONEY": "SAVE YOUR MONEY",
"Create blocked savings account into which you keep money saved for a specified period of time.":
"Create blocked savings account into which you keep money saved for a specified period of time.",
"QUICK PAYMENTS": "QUICK PAYMENTS",
@fonkamloic
fonkamloic / wrap_minimize_height.dart
Last active December 30, 2019 02:09
How to make Wrap to not minimise height (reduce number of rows) as much as possible
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
double kHeight = 100;
double kWidth = 100;
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@fonkamloic
fonkamloic / AndroidManifest.xml
Created December 29, 2019 06:46
AndroidManifest with all permission request for permission handler
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.permissionhandlerexample">
<!--
Internet permissions do not affect the `permission_handler` plugin, but are required if your app needs access to
the internet.
-->
<uses-permission android:name="android.permission.INTERNET"/>
@fonkamloic
fonkamloic / page_route.dart
Created November 14, 2019 03:53
simple page route in flutter. Not refactored
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
theme: themeData,
home: Scaffold(
body: MyApp(),
),
),
@fonkamloic
fonkamloic / page_route.dart
Created November 14, 2019 03:53
simple page route in flutter. Not refactored
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
theme: themeData,
home: Scaffold(
body: MyApp(),
),
),