- 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: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, |
| import 'package:flutter/material.dart'; | |
| abstract class BaseScreen extends StatefulWidget { | |
| const BaseScreen({Key? key}) : super(key: key); | |
| } |
Riverpod or Bloc
| 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) { |
| 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']; |
| 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 'dart:convert'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_calendar_carousel/classes/event.dart'; | |
| import 'package:flutter_calendar_carousel/flutter_calendar_carousel.dart'; | |
| import 'package:font_awesome_flutter/font_awesome_flutter.dart'; | |
| import 'package:http/http.dart' as http; | |
| import 'package:hub_food_park/network/network_helper.dart'; | |
| import 'package:hub_food_park/pojos/event/event_item.dart'; | |
| import 'package:hub_food_park/pojos/event/event_result.dart'; |
| public interface ExtraCurriculum { | |
| void debate(); | |
| void takeQuiz(); | |
| void speech(); | |
| } |
| package com.company; | |
| public class Main { | |
| public static void main(String[] args) { | |
| Person mPerson = new Person("Sayeed","Robin","0134234432","sayeed@gmail.com"); | |
| mPerson.printName(); | |
| System.out.println(mPerson.getEmailAddress()); |