Skip to content

Instantly share code, notes, and snippets.

Didier Boelens boeledi

Block or report user

Report or block boeledi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View internals_basic.dart
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
home: ApplicationSample(),
),
);
}
@boeledi
boeledi / OverlayableContainerOnLongPress_sample.dart
Last active Feb 11, 2019
How to display an overlay on top of a particular item, present in a Scroll Area, on longPress?
View OverlayableContainerOnLongPress_sample.dart
import 'package:flutter/material.dart';
import 'dart:math';
void main() {
///
/// Launch the application
///
runApp(Application());
}
@boeledi
boeledi / all_translations_sample.dart
Created Oct 18, 2018
Sample to implement the all_translations.dart
View all_translations_sample.dart
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'all_translations.dart';
void main() async {
// Initializes the translation module
await allTranslations.init();
// then start the application
runApp( MyApplication(),);
@boeledi
boeledi / all_translations.dart
Last active Oct 18, 2018
Module to handle multi-lingual
View all_translations.dart
import 'dart:async';
import 'dart:convert';
import 'dart:ui';
import 'package:flutter/services.dart';
import 'package:shared_preferences/shared_preferences.dart';
///
/// Preferences related
///
const String _storageKey = "MyApplication_";
@boeledi
boeledi / shared_preferences.dart
Last active Aug 30, 2018
Sample to show a way of using the SharedPreferences in a build
View shared_preferences.dart
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';
List<String> _languages = <String>['de','en','es','fr','it','nl','pt'];
class TestPage extends StatefulWidget {
@override
_TestPageState createState() => _TestPageState();
You can’t perform that action at this time.