Skip to content

Instantly share code, notes, and snippets.

View NinoBass's full-sized avatar
🏠
Working from home

Oluwaseun (David) Odunlade NinoBass

🏠
Working from home
View GitHub Profile
@NinoBass
NinoBass / page.dart
Created February 2, 2026 09:12
Sliver type of Header
Scaffold(
backgroundColor: backgroundColor,
body: Stack(
children: [
// Image bg...
AnimatedBuilder(
animation: effectiveScrollController,
builder: (context, child) {
double effectiveImageHeight = 0;
@NinoBass
NinoBass / animated_switcher_with_fade.ui.dart
Created February 2, 2026 09:07
Search State Animation
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class AnimatedSwitcherWithFadeUi extends StatelessWidget {
const AnimatedSwitcherWithFadeUi({
required this.showMainWidget,
required this.mainWidget,
this.alignment = Alignment.topCenter,
this.duration = const Duration(milliseconds: 300),
this.animationAxis = Axis.vertical,
String playHideAndSeekTheLongVersion() {
var counting = 0;
for (var i = 1; i <= 1000000000; i++) {
counting = i;
}
return '$counting! Ready or not, here I come!';
}
@NinoBass
NinoBass / inteview
Created July 28, 2022 13:02
Flutter inteview You’re making a shopping app called RubberBaby, which sells dolls. Unfortunately, you’ve run into a problem on the order page. If a customer makes one order for blue dolls and another order for red dolls but then tries to delete the blue doll order, the red doll order is wrong.
class OrderPage extends StatefulWidget {
@override
_OrderPageState createState() => _OrderPageState();
}
class _OrderPageState extends State<OrderPage> {
bool isShowing = true;
@override
Widget build(BuildContext context) {
return Column(children: [