Skip to content

Instantly share code, notes, and snippets.

import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'method.dart';
import 'getterSetter.dart';
import 'widget.dart';
// stateless ini akan menjadi widget model. Widget model ini akan berisi List TextField dinamis //
// List TextFielld akan menyesuaikan dengan banyak panjang list String atau Function(String). //
// panjang LIst<String> dan List<Function(String)> harus sama//
class WidgetEditGist extends StatelessWidget {
@override
void setState(fn) {
super.setState(fn);
}
import 'package:provider/provider.dart';
extension ProviderStoreBuildContextX on BuildContext {
/// Read the store once, doesn't subscribe a BuildContext to update.
AppStore readStore() => read<AppStore>();
/// Watch the store by subscribing to a BuildContext.
AppStore watchStore() => watch<AppStore>();
/// Select a piece of the store, subscribing a BuildContext to update only
@manofi21
manofi21 / juni.md
Last active July 30, 2023 10:52
my daily commit github #Daily
@slightfoot
slightfoot / shopify.dart
Last active November 19, 2022 13:13
Shopify example app - by Simon Lightfoot - 05/11/2022
// MIT License
//
// Copyright (c) 2022 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@manofi21
manofi21 / a. how to install Windows in MV.md
Last active July 31, 2023 05:48
medium_source_and_todo_list.md #Daily