Skip to content

Instantly share code, notes, and snippets.

@passsy
passsy / advanced_overlay.dart
Last active October 21, 2024 03:57
A Flutter overlay implementation that allows alligning the overlay freely around the target (button)
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
/// Written by PHNTM GmbH
void main() {
runApp(const AdvancedOverlaySample());
}
import 'dart:async';
import 'dart:convert';
import 'dart:math';
import 'package:firebase_messaging/firebase_messaging.dart';
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
import '../utils/logger/logger.dart';
const _channelId = '<your_channel_id>';
@venbrinoDev
venbrinoDev / README.md
Last active September 29, 2024 23:24
Implement Notification in flutter made easy by venbrinoDevs Team
  1. Make sure to initialize Firebase -
  2. Add dependency flutter pub add firebase_messaging
  3. Configure your app for ios/macos to receive notification (https://firebase.flutter.dev/docs/messaging/apple-integration/)

Usage

import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_messaging/firebase_messaging.dart';
@BjornDCode
BjornDCode / gist:5cb836a6b23638d6d02f5cb6ed59a04a
Created February 3, 2020 11:58
Tailwind - Fixed sidebar, scrollable content
// Source: https://twitter.com/calebporzio/status/1151876736931549185
<div class="flex">
<aside class="h-screen sticky top-0">
// Fixed Sidebar
</aside>
<main>
// Content
</main>