- https://github.com/VeryGoodOpenSource/very_good_cli (It will nicely genearate a project with all the basic setup, but with bloc state management, you can simply replace with any other state management library)
Riverpod or Bloc
import 'package:flutter/material.dart'; | |
const kbottomContainerColor = Color(0xFFF05556); | |
const kBackgroundColor = Color(0xF5F5F5F5); | |
const FOODIE = "foodie"; | |
const VENDOR = "vendor"; | |
const String BASE_URL = "http://unitor.us/hubfoodpark/api/"; |
import 'package:hub_food_park/pojos/user/result.dart'; | |
class UserResponse { | |
bool status; | |
Result result; | |
UserResponse({this.status, this.result}); | |
UserResponse.fromJson(Map<String, dynamic> json) { | |
status = json['status']; |
package com.company; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.Hashtable; | |
import java.util.Map; | |
public class HashTablePractice { | |
public static void main(String[] args) { |
package com.company; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.Hashtable; | |
import java.util.Map; | |
public class HashTablePractice { | |
public static void main(String[] args) { |
Riverpod or Bloc
import 'package:flutter/material.dart'; | |
abstract class BaseScreen extends StatefulWidget { | |
const BaseScreen({Key? key}) : super(key: key); | |
} |
import 'package:equatable/equatable.dart'; | |
import 'package:meta/meta.dart'; | |
class UserEntity extends Equatable { | |
final String id; | |
final String username; | |
final String password; | |
final List<LinkEntity> links; | |
UserEntity({ | |
@required this.id, |