Skip to content

Instantly share code, notes, and snippets.

View bishal-rumba007's full-sized avatar
🏠
Working from home

Bishal Rumba bishal-rumba007

🏠
Working from home
View GitHub Profile
@pmatatias
pmatatias / attach_iframe_android.dart
Last active February 7, 2025 09:51
Attach file , and open camera from iframe or webview in flutter app
import 'dart:io';
import 'package:file_picker/file_picker.dart';
import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';
import 'package:webview_flutter/webview_flutter.dart';
// ignore: depend_on_referenced_packages
import 'package:webview_flutter_android/webview_flutter_android.dart'
as webview_flutter_android;
import 'package:image_picker/image_picker.dart' as image_picker;
@kenzieschmoll
kenzieschmoll / main.dart
Created May 10, 2022 23:30
two way communication with iframe in Flutter Web app
import 'dart:async';
import 'dart:html' as html;
import 'dart:ui' as ui;
import 'package:flutter/material.dart';
void main() {
final controller = Controller()..init();
runApp(EmbeddedIFrameExample(controller));
}
@slightfoot
slightfoot / page_turn.dart
Created September 9, 2019 21:28
Page Turn Effect - By Simon Lightfoot. Replicating this behaviour. https://www.youtube.com/watch?v=JqvtZwIJMLo
// MIT License
//
// Copyright (c) 2019 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions: