Skip to content

Instantly share code, notes, and snippets.

View theachoem's full-sized avatar
:octocat:
Exploring Javascript Frameworks!

Thea Choem theachoem

:octocat:
Exploring Javascript Frameworks!
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 July 8, 2024 13:09
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 [],