Skip to content

Instantly share code, notes, and snippets.

View andrea689's full-sized avatar

Andrea Valenzano andrea689

  • Catania
View GitHub Profile
@andrea689
andrea689 / flutter_publish_release.yml
Last active June 17, 2024 14:41
Example of CI/CD for Flutter
name: Flutter publish release
on:
push:
tags:
- android-v[0-9]+.[0-9]+.[0-9]+
- ios-v[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+.[0-9]+
jobs:
@andrea689
andrea689 / main.dart
Last active January 15, 2020 12:02
Flutter Flip Transition
import 'dart:math';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
@andrea689
andrea689 / main.dart
Created December 13, 2019 12:49
Flutter - Container with hole
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
@andrea689
andrea689 / geodata.json
Created November 25, 2019 20:19
Geographic data to support codelab in Flutter Study Jam Torino
{
"polygons": [{
"id": "polygon-1",
"coordinates": [{
"lat": 45.08193200962874,
"lng": 7.660238742828369
},
{
"lat": 45.08152671484806,
"lng": 7.659946382045746
@andrea689
andrea689 / input_decorator.dart
Created November 20, 2019 17:06
TextFieldCustom
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:math' as math;
import 'dart:ui' show lerpDouble;
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
@andrea689
andrea689 / bugUiKitView.dart
Last active April 11, 2019 13:11
[bug][ios] UiKitView and url_launcher conflict
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
import 'package:url_launcher/url_launcher.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@andrea689
andrea689 / main.dart
Created April 5, 2019 16:11
[ios][bug] BottomSheet with image
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',