Skip to content

Instantly share code, notes, and snippets.

View theachoem's full-sized avatar
🌸
Working on StoryPad Premium

Thea Choem theachoem

🌸
Working on StoryPad Premium
View GitHub Profile
🌞 Morning 103 commits β–ˆβ–ˆβ–ˆβ–Žβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 15.6%
πŸŒ† Daytime 235 commits β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 35.7%
πŸŒƒ Evening 188 commits β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‰β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 28.5%
πŸŒ™ Night 133 commits β–ˆβ–ˆβ–ˆβ–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 20.2%
// ignore_for_file: avoid_print
// Input: [[1, 2], [3, 4]]
// Desired output: [3,1, 3,2, 4,1, 4,2]
void main() {
List<List<int>> nestedArray = [
[1, 2],
[3, 4],
[5],
@theachoem
theachoem / status_tab_bar.dart
Last active February 11, 2025 08:23
TabBar with badge that update color on swap - Demo included (Flutter)
// Copyright 2021, Thea Choem, All rights reserved.
import 'package:badges/badges.dart';
import 'package:flutter/material.dart';
class CustomTabBarItem {
final String label;
final String? value;
CustomTabBarItem({
@theachoem
theachoem / aba_drawer_wrapper.dart
Last active January 5, 2022 16:43
ABA Mobile Android Hidden Drawer - Demo included (Flutter)
// Copyright 2021, Thea Choem, All rights reserved.
import 'dart:ui';
import 'package:flutter/material.dart';
typedef WrapperBuilder = Widget Function(
BuildContext context,
VoidCallback callback,
);
@theachoem
theachoem / custom_tap_effect.dart
Last active January 5, 2022 16:41
Tap Effect includes Scale down + Touchable Opacity (Flutter)
// Copyright 2021, Thea Choem, All rights reserved.
import 'package:flutter/material.dart';
enum TapEffectType {
touchableOpacity,
scaleDown,
}
class CustomTapEffect extends StatefulWidget {
@theachoem
theachoem / play_store_tab_view.dart
Last active January 5, 2022 16:32
TabView inspired by Google Play Store (Flutter)
// Copyright 2021, Thea Choem, All rights reserved.
import 'dart:ui';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
class PlayStoreTabView extends StatelessWidget {
const PlayStoreTabView({
Key? key,
this.children = const [],