Skip to content

Instantly share code, notes, and snippets.

View demolaf's full-sized avatar
🎯
Focusing

Ademola Fadumo demolaf

🎯
Focusing
  • Nigeria
View GitHub Profile
@demolaf
demolaf / TabView.swift
Created July 23, 2024 09:52
Tab View with bottom line indicator (SwiftUI)
import SwiftUI
enum TabSection: CaseIterable {
case tab1
case tab2
var title: String {
switch self {
case .tab1:
"Tab 1"
@demolaf
demolaf / CustomSegmentedControl.swift
Last active July 23, 2024 09:51
Segmented Control with bottom line indicator (UIKit)
//
// CustomSegmentedControl.swift
// gogetit
//
// Created by Ademola Fadumo on 17/11/2023.
//
import UIKit
import SnapKit
@demolaf
demolaf / main.dart
Created September 6, 2023 14:14
glistening-snowflake-6186
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
@demolaf
demolaf / main.dart
Created August 23, 2023 16:15
Sorting items in a list based on their dates
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
@demolaf
demolaf / main.dart
Last active August 23, 2023 17:24
Sorting a list of items based on their date property
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override