Skip to content

Instantly share code, notes, and snippets.

View rajubd49's full-sized avatar

Md Harish Uz Jaman Mridha rajubd49

View GitHub Profile
@NHuyHoang
NHuyHoang / Handle BottomNavigationBar
Last active November 9, 2022 12:01
Programmatically select BottomNavigationBar Tab in Flutter instead of built in onTap callback
class _BTMAppBarState extends State<BTMAppBar> {
int navigationIndex = 0;
GlobalKey globalKey = new GlobalKey(debugLabel: 'btm_app_bar');
@override
Widget build(BuildContext context) {
return new Scaffold(
bottomNavigationBar: new BottomNavigationBar(
key: globalKey,
items: [
final class Loader: BindableObject {
let didChange = PassthroughSubject<Data?, Never>()
var task: URLSessionDataTask!
var data: Data? = nil {
didSet {
didChange.send(data)
}
}
init(_ url: URL) {
//
// BottomSheetView.swift
//
// Created by Majid Jabrayilov
// Copyright © 2019 Majid Jabrayilov. All rights reserved.
//
import SwiftUI
fileprivate enum Constants {
static let radius: CGFloat = 16