Firebase stream generic
In this post learn firebase stream (query, sort)generic.
Get the data stream using generic
Stream<List<T>> collectionStream<T>({
@required String path,
...
ListView Separated (Generic)
In this post we learn ListView separated null safety using Generic.
list_items_builder.dart
import 'empty_content.dart';
import 'package:flutter/material.dart';
typedef ItemWidgetBuilder<T> = Widget Function(BuildContext contet,...
Jetpack LazyColumn (itemsIndexed, itemContent)
A LazyColumn is a vertically scrolling list that only composes and lays out the currently visible items. It’s similar to a Recyclerview in the classic Android View...
Jetpack compose TextField (OutlinedTextField) Password
val passwordState = remember { mutableStateOf(TextFieldValue()) }
...
MutableState (Insert, Update, Remove)
import androidx.compose.runtime.getValue
import androidx.compose.runtime.setValue
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
class TodoViewModel: ViewModel() {
var todos: List<TodoItem> by mutableStateOf(listOf())
/*
ADD DEFAULT
var todos...
Jetpack compose MutableStateFlow Counter application
MutaleState
A mutable value holder where reads to the value property during the execution of a Composable function, the current RecomposeScope will be subscribed...
Circle CheckBox Without a library
Container(
...
Flutter drop down below animation
import 'package:flutter/material.dart';
class CustomDropdown<T> extends StatefulWidget {
/// the child widget for the button, this will be ignored if text is supplied
final Widget child;
...
ListView SetState Custom Widget and Null Safety
ListView dynamic data display
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() {
//STATUS BAR SET
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
...
Function Synchronous and Asynchronous In Flutter
Function Synchronous and Asynchronous In Flutter :
Synchronous functionIt causes the system to wait for the execution of everything that is inside it, only...