This file contains 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
void main() { | |
/// Funtions Example: | |
requiredFunction(1, 2); | |
requiredOptionalPositionalFunction(1, 2); | |
requiredOptionalPositionalFunction(1); | |
requiredOptionalPositionalDefaultFunction(1); | |
requiredOptionalPositionalDefaultFunction(1, 2); |
This file contains 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
void main() { | |
var _patient = Patient(); | |
var _covidPatient = CovidPatient(); | |
var _testResult = TestResult(); | |
_patient.setPatientData("Tuhin", "Male", 24); | |
print(_patient.patientData.values); | |
_covidPatient.name = "John"; | |
print(_covidPatient.name); |
This file contains 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 'package:covidtrackerbd/model/users.dart'; | |
import 'package:covidtrackerbd/services/authentication.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:provider/provider.dart'; | |
import 'loggedOut.dart'; | |
class LogInToSubmit extends StatefulWidget { | |
@override | |
_LogInToSubmitState createState() => _LogInToSubmitState(); |
This file contains 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:io'; | |
import 'package:carousel_slider/carousel_slider.dart'; | |
import 'package:dnb/services/AssetManager.dart'; | |
import 'package:flutter/material.dart'; | |
class NoticeSliderScreen extends StatefulWidget { | |
@override | |
_NoticeSliderScreenState createState() => _NoticeSliderScreenState(); | |
} |
This file contains 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
getAsset() async { | |
print('Test: ${getAssets.noticeList}'); //DEBUG | |
String notice; | |
for (notice in getAssets.noticeList) { | |
assetResponse = await http.get(noticeDownloadURL + notice); | |
documentDirectory = await getApplicationDocumentsDirectory(); |
This file contains 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 'package:carousel_slider/carousel_slider.dart'; | |
import 'package:flutter/material.dart'; | |
List<String> imgList = [ | |
'https://images.unsplash.com/photo-1520342868574-5fa3804e551c?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=6ff92caffcdd63681a35134a6770ed3b&auto=format&fit=crop&w=1951&q=80', | |
'https://images.unsplash.com/photo-1522205408450-add114ad53fe?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=368f45b0888aeb0b7b08e3a1084d3ede&auto=format&fit=crop&w=1950&q=80', | |
'https://images.unsplash.com/photo-1519125323398-675f0ddb6308?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=94a1e718d89ca60a6337a6008341ca50&auto=format&fit=crop&w=1950&q=80', | |
'https://images.unsplash.com/photo-1523205771623-e0faa4d2813d?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=89719a0d55dd05e2deae4120227e6efc&auto=format&fit=crop&w=1953&q=80', | |
'https://images.unsplash.com/photo-1508704019882-f9cf40e475b4?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=8c6e5e3aba713b17aa1fe71ab4f0ae5b&auto=format&fit=crop&w=1352&q=80', | |
'https://images.unsplash.c |