Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ModelClass{ | |
| int id; | |
| String stCol1=""; | |
| String stCol2=""; | |
| ModelClass({ | |
| this.id, | |
| this.stCol1, | |
| this.stCol2}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Container | |
| ( | |
| decoration: BoxDecoration( | |
| border: Border.all( | |
| color:Colors.lightGreen, | |
| ), | |
| color: Colors.white, | |
| borderRadius: BorderRadius.only(topLeft: Radius.circular(20),topRight: Radius.circular(20)), | |
| ), | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.Manifest; | |
| import android.annotation.TargetApi; | |
| import android.app.Activity; | |
| import android.app.AlertDialog; | |
| import android.app.DownloadManager; | |
| import android.content.BroadcastReceiver; | |
| import android.content.Context; | |
| import android.content.DialogInterface; | |
| import android.content.Intent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:convert'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/services.dart'; | |
| import '../hexColor.dart'; | |
| class FormValidation extends StatefulWidget{ | |
| FormValidation({Key key,this.title}) : super(key: key); | |
| final String title; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class MainActivityJv extends AppCompatActivity { | |
| ActivityMainBinding binding; | |
| @Override | |
| protected void onCreate(@Nullable Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| // setContentView(R.layout.activity_main); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class MainActivityViewModel extends ViewModel { | |
| private MutableLiveData<List<User>> users; | |
| private MainActivityRepo mRepo; | |
| public void init(){ | |
| if(users!=null){ | |
| return; | |
| } | |
| mRepo=MainActivityRepo.getInstance(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class MainActivityRepo { | |
| private static MainActivityRepo instance; | |
| private ArrayList<User> dataset=new ArrayList<>(); | |
| public static MainActivityRepo getInstance(){ | |
| if(instance==null){ | |
| instance=new MainActivityRepo(); | |
| } | |
| return instance; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class User { | |
| public String empId; | |
| public String empName; | |
| public User(String empId, String empName) { | |
| this.empId = empId; | |
| this.empName = empName; | |
| } |