Skip to content

Instantly share code, notes, and snippets.

View fredgrott's full-sized avatar
👾
focusing on flutter cross platform mobile dev

Fred Grott fredgrott

👾
focusing on flutter cross platform mobile dev
View GitHub Profile
@fredgrott
fredgrott / darkmode.dart
Created March 26, 2024 16:43 — forked from maheshmnj/darkmode.dart
Sample code showing dark mode transition similar to Telegram in flutter with circular transition. Blog Post: https://maheshmnj.medium.com/leveraging-clippaths-in-flutter-a5f34c795ae5
class DarkTransition extends StatefulWidget {
const DarkTransition(
{required this.childBuilder,
Key? key,
this.offset = Offset.zero,
this.themeController,
this.radius,
this.duration = const Duration(milliseconds: 400),
this.isDark = false})
: super(key: key);
@fredgrott
fredgrott / animated_appbar.dart
Created April 16, 2021 16:35 — forked from johnmuchow/animated_appbar.dart
This Flutter project creates an animated AppBar that includes animation of both a logo and included text.
import 'package:flutter/material.dart';
import 'package:flutter/animation.dart';
void main() => runApp(AppHome());
class AppHome extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,