You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Flutter/lib/aboutus.dart
+7
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,10 @@
1
+
//This is a page that has been added for the users to gain additional information about the app and its developers.
2
+
//A simple Container widget has been used to create a box, containing information entered in simple Text widgets.
3
+
//These Text widgets are arranged vertically in a column within the Container, by declaring them as the children widgets of a Column widget.
4
+
//The page also has two buttons (outside the Container widget), one which redirects the user to the Customer Care page and another which takes the user to the F.A.Qs page.
5
+
//The buttons are created using the MaterialButton widget.
6
+
//A splashcolor attribute is also added to the buttons.
Copy file name to clipboardExpand all lines: Flutter/lib/faq.dart
+6
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,9 @@
1
+
//This is a page that has been added for the users to gain additional information about the app and its developers.
2
+
//A simple Container widget has been used to create a box, containing information entered in simple Text widgets.
3
+
//These Text widgets are arranged vertically in a column within the Container, by declaring them as the children widgets of a Column widget.
4
+
//The page also has two buttons (outside the Container widget), one which redirects the user to the Customer Care page and another which takes the user to the F.A.Qs page.
5
+
//The buttons are created using the MaterialButton widget. A splashcolor attribute is also added to the buttons.
Copy file name to clipboardExpand all lines: Flutter/lib/login.dart
+7-2
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,14 @@
1
-
// The login screen for the application has been designed here. A Container widget is used to create a small box with text fields for entering the Email ID and Password in order to log in to the application. The labelText attribute has been used in both text fields, which indicates to the user that the text field is for entering the Email ID or the password. When the user clicks on a particular text field, e.g. the Email ID field, they are given a hint which instructs them on what to enter in the field. This is achieved using the hintText attribute. For security purposes, the password must not be visible while the user types it. So, the obscureText attribute is set to true in order for the password to be invisible. The Login button is created using a MaterialButton widget. A splashcolor attribute is added to the button, so that when the button is clicked, it creates an effect like an ink splash over the button and makes it more clearly visible that the button has been clicked. After successfully logging in, the user can access the features of the application.
1
+
//The login screen for the application has been designed here.
2
+
//The labelText attribute has been used in both text fields, which indicates to the user that the text field is for entering the Email ID or the password.
3
+
//When the user clicks on a particular text field, e.g. the Email ID field, they are given a hint which instructs them on what to enter in the field.
4
+
//This is achieved using the hintText attribute. For security purposes, the password must not be visible while the user types it.
5
+
//So, the obscureText attribute is set to true in order for the password to be invisible.
6
+
//The Login button is created using a MaterialButton widget.
7
+
//After successfully logging in, the user can access the features of the application.
Copy file name to clipboardExpand all lines: Flutter/lib/mainnavbar.dart
+14-3
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,22 @@
1
+
//Here, the navigation bar for the application has been designed.
2
+
//It is a side navigation bar, which is called as a drawer menu or a navigation drawer in Flutter.
3
+
//It is created using the Drawer widget.
4
+
//Then a ListView widget is used to add create a list of items in the navigation drawer.
5
+
//Each item in the navigation drawer is created using a ListTile widget.
6
+
//The dart files for all screens have to be imported into this dart file, so that all screens can be accessed from the navigation bar.
7
+
//Also, the dart file for the navigation bar has been imported into every other dart file, in order for the navigation bar to be accessible from each screen.
8
+
//A separate MaterialPageRoute is used to navigate to each screen from the navigation bar.
9
+
//This MaterialPageRoute has to be added in the OnTap attribute of the ListTile widget for navigation to a particular screen along with the path to the desired screen.
10
+
//Additionally, one of the ListTile widgets in the navigation drawer is used along with the url_launcher package to link the Flutter app to the Streamlit web app.
11
+
//The URL of the Streamlit web app is given.
12
+
//The url_launcher dependency has to be added to the pubspec.yaml file and the package needs to be imported.
0 commit comments