├── README.md ├── detail_page_child.dart ├── detail_page.dart ├── knowledge.dart ├── education.dart ├── food.dart ├── housing.dart ├── charity.dart ├── health.dart ├── work.dart ├── family.dart ├── ice.dart ├── aboutus.dart ├── College.dart ├── Student.dart ├── ousregistration.dart ├── Subject.dart └── strings.dart /README.md: -------------------------------------------------------------------------------- 1 | # mobile-application -------------------------------------------------------------------------------- /detail_page_child.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | 4 | class DetailChildPage extends StatelessWidget { 5 | final Services services; 6 | 7 | DetailChildPage({Key? key, required this.services}) : super(key: key); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return Scaffold( 12 | appBar: AppBar( 13 | centerTitle: true, 14 | title: Text( 15 | 'Gmail' 16 | ) 17 | ), 18 | body: Container( 19 | child: Center( 20 | child: FloatingActionButton( 21 | 22 | child: Text('SUBMIT'), 23 | onPressed: () { 24 | Navigator.push( 25 | context, 26 | MaterialPageRoute( 27 | builder: (context) => DetailChildPage(services: services ))); 28 | }, 29 | ) 30 | ) 31 | ) 32 | ); 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /detail_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'detail_page_child.dart'; 4 | 5 | class DetailPage extends StatelessWidget { 6 | final Services services; 7 | 8 | DetailPage({Key? key, required this.services}) : super(key: key); 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | ListTile makeListTile(Services services) => ListTile( 13 | contentPadding: 14 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 15 | leading: Container( 16 | padding: EdgeInsets.only(right: 20.0), 17 | decoration: new BoxDecoration( 18 | border: new Border( 19 | right: new BorderSide(width: 1.0, color: Colors.white24))), 20 | child: Icon(Icons.auto_awesome, color: Colors.white), 21 | ), 22 | title: Text( 23 | services.title, 24 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 25 | ), 26 | 27 | 28 | subtitle: Row( 29 | children: [ 30 | Expanded( 31 | flex: 1, 32 | child: Container( 33 | child: LinearProgressIndicator( 34 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 35 | value: services.indicatorValue, 36 | valueColor: AlwaysStoppedAnimation(Colors.green)), 37 | )), 38 | ], 39 | ), 40 | trailing: 41 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 42 | onTap: () { 43 | Navigator.push( 44 | context, 45 | MaterialPageRoute( 46 | builder: (context) => DetailPage(services: services))); 47 | }, 48 | ); 49 | 50 | Card makeCard(Services services) => Card( 51 | elevation: 8.0, 52 | margin: new EdgeInsets.symmetric(horizontal: 20.0, vertical: 6.0), 53 | child: Container( 54 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 55 | child: makeListTile(services), 56 | ), 57 | ); 58 | 59 | return Scaffold( 60 | backgroundColor: Colors.green, 61 | appBar: AppBar( 62 | centerTitle: true, 63 | title: Text( 64 | 'KRCE' 65 | ) 66 | ), 67 | body: Container( 68 | margin: EdgeInsets.all(20), 69 | child: Center( 70 | child: FloatingActionButton( 71 | 72 | child: Text('Action'), 73 | onPressed: () { 74 | Navigator.push( 75 | context, 76 | MaterialPageRoute( 77 | builder: (context) => DetailChildPage(services: services ))); 78 | }, 79 | ) 80 | ) 81 | ) 82 | ); 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /knowledge.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/detail_page.dart'; 5 | 6 | class Knowledge extends StatefulWidget { 7 | @override 8 | KnowledgeState createState() => KnowledgeState(); 9 | } 10 | 11 | class KnowledgeState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | Navigator.push( 54 | context, 55 | MaterialPageRoute( 56 | builder: (context) => DetailPage(services: services))); 57 | }, 58 | ); 59 | 60 | Card makeCard(Services services) => Card( 61 | elevation: 8.0, 62 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 63 | child: Container( 64 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 65 | child: makeListTile(services), 66 | ), 67 | ); 68 | 69 | final makeBody = Container( 70 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 71 | child: ListView.builder( 72 | scrollDirection: Axis.vertical, 73 | shrinkWrap: true, 74 | itemCount: services.length, 75 | itemBuilder: (BuildContext context, int index) { 76 | return makeCard(services[index]); 77 | }, 78 | ), 79 | ); 80 | 81 | return Scaffold( 82 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 83 | body: makeBody, 84 | ); 85 | } 86 | } 87 | 88 | List getServices() { 89 | return [ 90 | Services( 91 | title: Strings.TITLE_SAS_40_SAMSKARAM, 92 | indicatorValue: 1.0, 93 | ), 94 | ]; 95 | } 96 | -------------------------------------------------------------------------------- /education.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/detail_page.dart'; 5 | 6 | class Education extends StatefulWidget { 7 | @override 8 | EducationState createState() => EducationState(); 9 | } 10 | 11 | class EducationState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | Navigator.push( 54 | context, 55 | MaterialPageRoute( 56 | builder: (context) => DetailPage(services: services))); 57 | }, 58 | ); 59 | 60 | Card makeCard(Services services) => Card( 61 | elevation: 8.0, 62 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 63 | child: Container( 64 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 65 | child: makeListTile(services), 66 | ), 67 | ); 68 | 69 | final makeBody = Container( 70 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 71 | child: ListView.builder( 72 | scrollDirection: Axis.vertical, 73 | shrinkWrap: true, 74 | itemCount: services.length, 75 | itemBuilder: (BuildContext context, int index) { 76 | return makeCard(services[index]); 77 | }, 78 | ), 79 | ); 80 | 81 | return Scaffold( 82 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 83 | body: makeBody, 84 | ); 85 | } 86 | } 87 | 88 | List getServices() { 89 | return [ 90 | Services( 91 | title: Strings.TITLE_VID_VIEW_DOWNLOAD_DES, 92 | indicatorValue: 0.50, 93 | ), 94 | Services( 95 | title: Strings.TITLE_VID_VIEW_DOWNLOAD_DIV, 96 | indicatorValue: 1.0, 97 | ), 98 | ]; 99 | } 100 | -------------------------------------------------------------------------------- /food.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/detail_page.dart'; 5 | 6 | class Food extends StatefulWidget { 7 | @override 8 | FoodState createState() => FoodState(); 9 | } 10 | 11 | class FoodState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | Navigator.push( 54 | context, 55 | MaterialPageRoute( 56 | builder: (context) => DetailPage(services: services))); 57 | }, 58 | ); 59 | 60 | Card makeCard(Services services) => Card( 61 | elevation: 8.0, 62 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 63 | child: Container( 64 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 65 | child: makeListTile(services), 66 | ), 67 | ); 68 | 69 | final makeBody = Container( 70 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 71 | child: ListView.builder( 72 | scrollDirection: Axis.vertical, 73 | shrinkWrap: true, 74 | itemCount: services.length, 75 | itemBuilder: (BuildContext context, int index) { 76 | return makeCard(services[index]); 77 | }, 78 | ), 79 | ); 80 | 81 | return Scaffold( 82 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 83 | body: makeBody, 84 | ); 85 | } 86 | } 87 | 88 | List getServices() { 89 | return [ 90 | Services( 91 | title: Strings.TITLE_DPSR_BOJ_BUY_FOOD_PRDS, 92 | indicatorValue: 0.33, 93 | ), 94 | Services( 95 | title: Strings.TITLE_BOJ_VIEW_BOOK_CATERERS, 96 | indicatorValue: 0.66, 97 | ), 98 | Services( 99 | title: Strings.TITLE_BOJ_BUY_FOOD_PRDS, 100 | indicatorValue: 0.99, 101 | ), 102 | ]; 103 | } 104 | -------------------------------------------------------------------------------- /housing.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/detail_page.dart'; 5 | 6 | class Housing extends StatefulWidget { 7 | @override 8 | HousingState createState() => HousingState(); 9 | } 10 | 11 | class HousingState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | Navigator.push( 54 | context, 55 | MaterialPageRoute( 56 | builder: (context) => DetailPage(services: services))); 57 | }, 58 | ); 59 | 60 | Card makeCard(Services services) => Card( 61 | elevation: 8.0, 62 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 63 | child: Container( 64 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 65 | child: makeListTile(services), 66 | ), 67 | ); 68 | 69 | final makeBody = Container( 70 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 71 | child: ListView.builder( 72 | scrollDirection: Axis.vertical, 73 | shrinkWrap: true, 74 | itemCount: services.length, 75 | itemBuilder: (BuildContext context, int index) { 76 | return makeCard(services[index]); 77 | }, 78 | ), 79 | ); 80 | 81 | return Scaffold( 82 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 83 | body: makeBody, 84 | ); 85 | } 86 | } 87 | 88 | List getServices() { 89 | return [ 90 | Services( 91 | title: Strings.TITLE_VAT_BUY, 92 | indicatorValue: 0.33, 93 | ), 94 | Services( 95 | title: Strings.TITLE_VAT_SELL, 96 | indicatorValue: 0.66, 97 | ), 98 | Services( 99 | title: Strings.TITLE_VAT_VIEW_EDIT_DELETE_PROFILE, 100 | indicatorValue: 0.99, 101 | ), 102 | ]; 103 | } 104 | -------------------------------------------------------------------------------- /charity.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/detail_page.dart'; 5 | 6 | class Charity extends StatefulWidget { 7 | @override 8 | CharityState createState() => CharityState(); 9 | } 10 | 11 | class CharityState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | Navigator.push( 54 | context, 55 | MaterialPageRoute( 56 | builder: (context) => DetailPage(services: services))); 57 | }, 58 | ); 59 | 60 | Card makeCard(Services services) => Card( 61 | elevation: 8.0, 62 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 63 | child: Container( 64 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 65 | child: makeListTile(services), 66 | ), 67 | ); 68 | 69 | final makeBody = Container( 70 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 71 | child: ListView.builder( 72 | scrollDirection: Axis.vertical, 73 | shrinkWrap: true, 74 | itemCount: services.length, 75 | itemBuilder: (BuildContext context, int index) { 76 | return makeCard(services[index]); 77 | }, 78 | ), 79 | ); 80 | 81 | return Scaffold( 82 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 83 | body: makeBody, 84 | ); 85 | } 86 | } 87 | 88 | List getServices() { 89 | return [ 90 | Services( 91 | title: Strings.TITLE_KAI_KAINKARYAM, 92 | indicatorValue: 0.33, 93 | ), 94 | Services( 95 | title: Strings.TITLE_KAI_VIEW_REQUESTS, 96 | indicatorValue: 0.66, 97 | ), 98 | Services( 99 | title: Strings.TITLE_KAI_VIEW_EDIT_DELETE_PROFILE, 100 | indicatorValue: 0.99, 101 | ), 102 | ]; 103 | } 104 | -------------------------------------------------------------------------------- /health.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/ousregistration.dart'; 5 | 6 | class Health extends StatefulWidget { 7 | @override 8 | HealthState createState() => HealthState(); 9 | } 10 | 11 | class HealthState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | switch (services.title) { 54 | case Strings.TITLE_OUS_CRT_APPT: 55 | Navigator.push(context, 56 | MaterialPageRoute(builder: (context) => OUSRegistration())); 57 | break; 58 | default: 59 | break; 60 | } 61 | }, 62 | ); 63 | 64 | Card makeCard(Services services) => Card( 65 | elevation: 8.0, 66 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 67 | child: Container( 68 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 69 | child: makeListTile(services), 70 | ), 71 | ); 72 | 73 | final makeBody = Container( 74 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 75 | child: ListView.builder( 76 | scrollDirection: Axis.vertical, 77 | shrinkWrap: true, 78 | itemCount: services.length, 79 | itemBuilder: (BuildContext context, int index) { 80 | return makeCard(services[index]); 81 | }, 82 | ), 83 | ); 84 | 85 | return Scaffold( 86 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 87 | body: makeBody, 88 | ); 89 | } 90 | } 91 | 92 | List getServices() { 93 | return [ 94 | Services( 95 | title: Strings.TITLE_OUS_CRT_APPT, 96 | indicatorValue: 0.25, 97 | ), 98 | Services( 99 | title: Strings.TITLE_OUS_VW_APPT, 100 | indicatorValue: 0.50, 101 | ), 102 | Services( 103 | title: Strings.TITLE_OUS_REGISTRATION, 104 | indicatorValue: 0.75, 105 | ), 106 | Services( 107 | title: Strings.TITLE_OUS_APPTS, 108 | indicatorValue: 1.0, 109 | ), 110 | ]; 111 | } 112 | -------------------------------------------------------------------------------- /work.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/detail_page.dart'; 5 | 6 | class Work extends StatefulWidget { 7 | @override 8 | WorkState createState() => WorkState(); 9 | } 10 | 11 | class WorkState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | Navigator.push( 54 | context, 55 | MaterialPageRoute( 56 | builder: (context) => DetailPage(services: services))); 57 | }, 58 | ); 59 | 60 | Card makeCard(Services services) => Card( 61 | elevation: 8.0, 62 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 63 | child: Container( 64 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 65 | child: makeListTile(services), 66 | ), 67 | ); 68 | 69 | final makeBody = Container( 70 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 71 | child: ListView.builder( 72 | scrollDirection: Axis.vertical, 73 | shrinkWrap: true, 74 | itemCount: services.length, 75 | itemBuilder: (BuildContext context, int index) { 76 | return makeCard(services[index]); 77 | }, 78 | ), 79 | ); 80 | 81 | return Scaffold( 82 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 83 | body: makeBody, 84 | ); 85 | } 86 | } 87 | 88 | List getServices() { 89 | return [ 90 | Services( 91 | title: Strings.TITLE_KAR_JOB_CLASSIFIEDS, 92 | indicatorValue: 0.25, 93 | ), 94 | Services( 95 | title: Strings.TITLE_VED_VED_REGISTRATION, 96 | indicatorValue: 0.50, 97 | ), 98 | Services( 99 | title: Strings.TITLE_VED_PROF_LIST, 100 | indicatorValue: 0.75, 101 | ), 102 | Services( 103 | title: Strings.TITLE_VED_FRESH_LIST, 104 | indicatorValue: 1.0, 105 | ), 106 | ]; 107 | } 108 | -------------------------------------------------------------------------------- /family.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/detail_page.dart'; 5 | 6 | class Family extends StatefulWidget { 7 | @override 8 | FamilyState createState() => FamilyState(); 9 | } 10 | 11 | class FamilyState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | Navigator.push( 54 | context, 55 | MaterialPageRoute( 56 | builder: (context) => DetailPage(services: services))); 57 | }, 58 | ); 59 | 60 | Card makeCard(Services services) => Card( 61 | elevation: 8.0, 62 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 63 | child: Container( 64 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 65 | child: makeListTile(services), 66 | ), 67 | ); 68 | 69 | final makeBody = Container( 70 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 71 | child: ListView.builder( 72 | scrollDirection: Axis.vertical, 73 | shrinkWrap: true, 74 | itemCount: services.length, 75 | itemBuilder: (BuildContext context, int index) { 76 | return makeCard(services[index]); 77 | }, 78 | ), 79 | ); 80 | 81 | return Scaffold( 82 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 83 | body: makeBody, 84 | ); 85 | } 86 | } 87 | 88 | List getServices() { 89 | return [ 90 | Services( 91 | title: Strings.TITLE_MMM_MMM_REGISTRATION, 92 | indicatorValue: 0.25, 93 | ), 94 | Services( 95 | title: Strings.TITLE_MMM_VARAN_VADHU_LIST, 96 | indicatorValue: 0.50, 97 | ), 98 | Services( 99 | title: Strings.TITLE_MMM_VIEW_EDIT_DELETE_PROFILE, 100 | indicatorValue: 0.75, 101 | ), 102 | Services( 103 | title: Strings.TITLE_MMM_LATEST_NEWS, 104 | indicatorValue: 1.0, 105 | ), 106 | ]; 107 | } 108 | -------------------------------------------------------------------------------- /ice.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/detail_page.dart'; 5 | 6 | class ice extends StatefulWidget { 7 | @override 8 | iceState createState() => iceState(); 9 | } 10 | 11 | class iceState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.ac_unit_rounded, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_double_arrow_down, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | Navigator.push( 54 | context, 55 | MaterialPageRoute( 56 | builder: (context) => DetailPage(services: services))); 57 | }, 58 | ); 59 | 60 | Card makeCard(Services services) => Card( 61 | elevation: 8.0, 62 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 63 | child: Container( 64 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 65 | child: makeListTile(services), 66 | ), 67 | ); 68 | 69 | final makeBody = Container( 70 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 71 | child: ListView.builder( 72 | scrollDirection: Axis.vertical, 73 | shrinkWrap: true, 74 | itemCount: services.length, 75 | itemBuilder: (BuildContext context, int index) { 76 | return makeCard(services[index]); 77 | }, 78 | ), 79 | ); 80 | 81 | return Scaffold( 82 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 83 | body: makeBody, 84 | ); 85 | } 86 | } 87 | 88 | List getServices() { 89 | return [ 90 | Services( 91 | title: Strings.TITLE_DPSR_PRODUCT_NAME, 92 | indicatorValue: 0.50, 93 | ), 94 | Services( 95 | title: Strings.TITLE_DPSR_STUDENT, 96 | indicatorValue: 0.60, 97 | ), 98 | Services( 99 | title: Strings.TITLE_DPSR_SERVICES, 100 | indicatorValue: 0.70, 101 | ), 102 | Services( 103 | title: Strings.TITLE_DPSR_SPONSOR, 104 | indicatorValue: 0.80, 105 | ), 106 | Services( 107 | title: Strings.TITLE_DPSR_END, 108 | indicatorValue: 0.90, 109 | ), 110 | ]; 111 | } 112 | -------------------------------------------------------------------------------- /aboutus.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/detail_page.dart'; 5 | 6 | class AboutUs extends StatefulWidget { 7 | @override 8 | AboutUsState createState() => AboutUsState(); 9 | } 10 | 11 | class AboutUsState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | Navigator.push( 54 | context, 55 | MaterialPageRoute( 56 | builder: (context) => DetailPage(services: services))); 57 | }, 58 | ); 59 | 60 | Card makeCard(Services services) => Card( 61 | elevation: 8.0, 62 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 63 | child: Container( 64 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 65 | child: makeListTile(services), 66 | ), 67 | ); 68 | 69 | final makeBody = Container( 70 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 71 | child: ListView.builder( 72 | scrollDirection: Axis.vertical, 73 | shrinkWrap: true, 74 | itemCount: services.length, 75 | itemBuilder: (BuildContext context, int index) { 76 | return makeCard(services[index]); 77 | }, 78 | ), 79 | ); 80 | 81 | return Scaffold( 82 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 83 | body: makeBody, 84 | ); 85 | } 86 | } 87 | 88 | List getServices() { 89 | return [ 90 | Services( 91 | title: Strings.TITLE_DPSR_ABOUT_US, 92 | indicatorValue: 0.20, 93 | ), 94 | Services( 95 | title: Strings.TITLE_DPSR_CONTACT_US, 96 | indicatorValue: 0.40, 97 | ), 98 | Services( 99 | title: Strings.TITLE_DPSR_OUR_SERVICES, 100 | indicatorValue: 0.60, 101 | ), 102 | Services( 103 | title: Strings.TITLE_DPSR_BE_SPONSER, 104 | indicatorValue: 0.80, 105 | ), 106 | Services( 107 | title: Strings.TITLE_DPSR_OUR_SPONSERS, 108 | indicatorValue: 1.0, 109 | ), 110 | ]; 111 | } 112 | -------------------------------------------------------------------------------- /College.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/detail_page.dart'; 5 | 6 | class College extends StatefulWidget { 7 | @override 8 | CollegeState createState() => CollegeState(); 9 | } 10 | 11 | class CollegeState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | Navigator.push( 54 | context, 55 | MaterialPageRoute( 56 | builder: (context) => DetailPage(services: services))); 57 | }, 58 | ); 59 | 60 | Card makeCard(Services services) => Card( 61 | elevation: 8.0, 62 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 63 | child: Container( 64 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 65 | child: makeListTile(services), 66 | ), 67 | ); 68 | 69 | final makeBody = Container( 70 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 71 | child: ListView.builder( 72 | scrollDirection: Axis.vertical, 73 | shrinkWrap: true, 74 | itemCount: services.length, 75 | itemBuilder: (BuildContext context, int index) { 76 | return makeCard(services[index]); 77 | }, 78 | ), 79 | ); 80 | 81 | return Scaffold( 82 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 83 | appBar: AppBar( 84 | title: const Text("COLLEGE DETAILS"), 85 | actions: [ 86 | IconButton( 87 | icon: const Icon(Icons.comment), 88 | tooltip: 'Comment Icon', 89 | onPressed: () {}, 90 | ), //IconButton 91 | IconButton( 92 | icon: const Icon(Icons.settings), 93 | tooltip: 'Setting Icon', 94 | onPressed: () {}, 95 | ), //IconButton 96 | ], //[] 97 | backgroundColor: Colors.yellowAccent[400], 98 | elevation: 50.0, 99 | leading: IconButton( 100 | icon: const Icon(Icons.menu), 101 | tooltip: 'Menu Icon', 102 | onPressed: () {}, 103 | ), 104 | 105 | ), 106 | body: makeBody, 107 | ); 108 | } 109 | } 110 | 111 | List getServices() { 112 | return [ 113 | Services( 114 | title: Strings.TITLE_DPSR_COLL_NAME, 115 | indicatorValue: 0.20, 116 | ), 117 | Services( 118 | title: Strings.TITLE_DPSR_COLL_ID, 119 | indicatorValue: 0.40, 120 | ), 121 | Services( 122 | title: Strings.TITLE_DPSR_COLL_PLACE, 123 | indicatorValue: 0.60, 124 | ), 125 | ]; 126 | } 127 | -------------------------------------------------------------------------------- /Student.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/detail_page.dart'; 5 | 6 | class Student extends StatefulWidget { 7 | @override 8 | StudentState createState() => StudentState(); 9 | } 10 | 11 | class StudentState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | Navigator.push( 54 | context, 55 | MaterialPageRoute( 56 | builder: (context) => DetailPage(services: services))); 57 | }, 58 | ); 59 | 60 | Card makeCard(Services services) => Card( 61 | elevation: 8.0, 62 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 63 | child: Container( 64 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 65 | child: makeListTile(services), 66 | ), 67 | ); 68 | 69 | final makeBody = Container( 70 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 71 | child: ListView.builder( 72 | scrollDirection: Axis.vertical, 73 | shrinkWrap: true, 74 | itemCount: services.length, 75 | itemBuilder: (BuildContext context, int index) { 76 | return makeCard(services[index]); 77 | }, 78 | ), 79 | ); 80 | 81 | return Scaffold( 82 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 83 | appBar: AppBar( 84 | title: const Text("STUDENT DETAILS"), 85 | actions: [ 86 | IconButton( 87 | icon: const Icon(Icons.comment), 88 | tooltip: 'Comment Icon', 89 | onPressed: () {}, 90 | ), //IconButton 91 | IconButton( 92 | icon: const Icon(Icons.settings), 93 | tooltip: 'Setting Icon', 94 | onPressed: () {}, 95 | ), //IconButton 96 | ], //[] 97 | backgroundColor: Colors.yellowAccent[400], 98 | elevation: 50.0, 99 | leading: IconButton( 100 | icon: const Icon(Icons.menu), 101 | tooltip: 'Menu Icon', 102 | onPressed: () {}, 103 | ), 104 | 105 | ), 106 | 107 | body: makeBody, 108 | ); 109 | } 110 | } 111 | 112 | List getServices() { 113 | return [ 114 | Services( 115 | title: Strings.TITLE_DPSR_REG_NO, 116 | indicatorValue: 0.20, 117 | ), 118 | Services( 119 | title: Strings.TITLE_DPSR_ROLL_NO, 120 | indicatorValue: 0.40, 121 | ), 122 | Services( 123 | title: Strings.TITLE_DPSR_MARKS, 124 | indicatorValue: 0.60, 125 | ), 126 | Services( 127 | title: Strings.TITLE_DPSR_NAME, 128 | indicatorValue: 0.80, 129 | ), 130 | ]; 131 | } 132 | -------------------------------------------------------------------------------- /ousregistration.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/widgets/styles.dart'; 5 | import 'package:devops_demo/ui/widgets/textfield.dart'; 6 | 7 | class OUSRegistration extends StatefulWidget { 8 | @override 9 | State createState() => OUSRegistrationState(); 10 | } 11 | 12 | class OUSRegistrationState extends State { 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | return Scaffold( 17 | appBar: AppBar( 18 | title: Text( 19 | Strings.TITLE_OUS_REGISTRATION, 20 | style: new TextStyle(color: Colors.white), 21 | ), 22 | leading: new IconButton( 23 | icon: new Icon(Icons.arrow_back), 24 | onPressed: () { 25 | Navigator.pop(context); 26 | }, 27 | ), 28 | ), 29 | body: SingleChildScrollView( 30 | child: Container( 31 | height: MediaQuery.of(context).size.height, 32 | color: Colors.black12, 33 | child: Column( 34 | //crossAxisAlignment: CrossAxisAlignment.start, 35 | mainAxisAlignment: MainAxisAlignment.start, 36 | children: [ 37 | SizedBox( 38 | height: 10, 39 | ), 40 | Container( 41 | child: Stack( 42 | alignment: Alignment.bottomCenter, 43 | children: [ 44 | Column( 45 | // mainAxisAlignment: MainAxisAlignment.spaceAround, 46 | children: [ 47 | sizedBoxHeight, 48 | createAccountField, 49 | sizedBoxHeight, 50 | firstNameField, 51 | sizedBoxHeight, 52 | lastNameField, 53 | sizedBoxHeight, 54 | Container( 55 | width: MediaQuery.of(context).size.width / 2, 56 | height: 50, 57 | child: ElevatedButton( 58 | style: elevatedButtonStyle, 59 | onPressed: () { }, //null 60 | child: Text(Strings.BTN_TITLE_DOB),), 61 | ), 62 | sizedBoxHeight, 63 | Container( 64 | width: MediaQuery.of(context).size.width / 2, 65 | height: 50, 66 | child: ElevatedButton( 67 | onPressed: () { }, //null 68 | child: Text(Strings.BTN_TITLE_DOB),), 69 | ), 70 | Container( 71 | width: MediaQuery.of(context).size.width / 2, 72 | height: 50, 73 | child: TextButton( 74 | onPressed: () { }, //null 75 | child: Text(Strings.BTN_TITLE_DOB),), 76 | ), 77 | Container( 78 | width: MediaQuery.of(context).size.width / 2, 79 | height: 50, 80 | child: OutlinedButton( 81 | onPressed: () { }, //null 82 | child: Text(Strings.BTN_TITLE_DOB),), 83 | ), 84 | Container( 85 | width: MediaQuery.of(context).size.width / 2, 86 | height: 50, 87 | child: CupertinoButton( 88 | onPressed: () { }, //null 89 | child: Text(Strings.BTN_TITLE_DOB),), 90 | ), 91 | Container( 92 | width: MediaQuery.of(context).size.width / 2, 93 | height: 50, 94 | child: CupertinoButton.filled( 95 | onPressed: () { }, //null 96 | child: Text(Strings.BTN_TITLE_DOB),), 97 | ), 98 | ], 99 | ), 100 | ], 101 | )), 102 | ], 103 | )), 104 | ), 105 | ); 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /Subject.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:devops_demo/database/dao/services.dart'; 3 | import 'package:devops_demo/resources/texts/strings.dart'; 4 | import 'package:devops_demo/ui/views/detail_page.dart'; 5 | 6 | class Subject extends StatefulWidget { 7 | @override 8 | SubjectState createState() => SubjectState(); 9 | } 10 | 11 | class SubjectState extends State { 12 | late List services; 13 | 14 | @override 15 | void initState() { 16 | services = getServices(); 17 | super.initState(); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | ListTile makeListTile(Services services) => ListTile( 23 | contentPadding: 24 | EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0), 25 | leading: Container( 26 | padding: EdgeInsets.only(right: 12.0), 27 | decoration: new BoxDecoration( 28 | border: new Border( 29 | right: new BorderSide(width: 1.0, color: Colors.white24))), 30 | child: Icon(Icons.auto_awesome, color: Colors.white), 31 | ), 32 | title: Text( 33 | services.title, 34 | style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 35 | ), 36 | 37 | 38 | subtitle: Row( 39 | children: [ 40 | Expanded( 41 | flex: 1, 42 | child: Container( 43 | child: LinearProgressIndicator( 44 | backgroundColor: Color.fromRGBO(209, 224, 224, 0.2), 45 | value: services.indicatorValue, 46 | valueColor: AlwaysStoppedAnimation(Colors.green)), 47 | )), 48 | ], 49 | ), 50 | trailing: 51 | Icon(Icons.keyboard_arrow_right, color: Colors.white, size: 30.0), 52 | onTap: () { 53 | Navigator.push( 54 | context, 55 | MaterialPageRoute( 56 | builder: (context) => DetailPage(services: services))); 57 | }, 58 | ); 59 | 60 | Card makeCard(Services services) => Card( 61 | elevation: 8.0, 62 | margin: new EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0), 63 | child: Container( 64 | decoration: BoxDecoration(color: Color.fromRGBO(64, 75, 96, .9)), 65 | child: makeListTile(services), 66 | ), 67 | ); 68 | 69 | final makeBody = Container( 70 | // decoration: BoxDecoration(color: Color.fromRGBO(58, 66, 86, 1.0)), 71 | child: ListView.builder( 72 | scrollDirection: Axis.vertical, 73 | shrinkWrap: true, 74 | itemCount: services.length, 75 | itemBuilder: (BuildContext context, int index) { 76 | return makeCard(services[index]); 77 | }, 78 | ), 79 | ); 80 | 81 | return Scaffold( 82 | backgroundColor: Color.fromRGBO(58, 66, 86, 1.0), 83 | appBar: AppBar( 84 | title: const Text("SUBJECTS DETAILS"), 85 | actions: [ 86 | IconButton( 87 | icon: const Icon(Icons.comment), 88 | tooltip: 'Comment Icon', 89 | onPressed: () {}, 90 | ), //IconButton 91 | IconButton( 92 | icon: const Icon(Icons.settings), 93 | tooltip: 'Setting Icon', 94 | onPressed: () {}, 95 | ), //IconButton 96 | ], //[] 97 | backgroundColor: Colors.yellowAccent[400], 98 | elevation: 50.0, 99 | leading: IconButton( 100 | icon: const Icon(Icons.menu), 101 | tooltip: 'Menu Icon', 102 | onPressed: () {}, 103 | ), 104 | 105 | ), 106 | body: makeBody, 107 | ); 108 | } 109 | } 110 | 111 | List getServices() { 112 | return [ 113 | Services( 114 | title: Strings.TITLE_DPSR_SUB_NAME, 115 | indicatorValue: 0.20, 116 | ), 117 | Services( 118 | title: Strings.TITLE_DPSR_SUB_CODE, 119 | indicatorValue: 0.40, 120 | ), 121 | Services( 122 | title: Strings.TITLE_DPSR_SUB_CREDIT, 123 | indicatorValue: 0.60, 124 | ), 125 | Services( 126 | title: Strings.TITLE_DPSR_SUB_GRADE, 127 | indicatorValue: 0.80, 128 | ), 129 | Services( 130 | title: Strings.TITLE_DPSR_SUB_NUMBER, 131 | indicatorValue: 1.0, 132 | ), 133 | Services( 134 | title: Strings.TITLE_DPSR_SUB_NUMBERS, 135 | indicatorValue: 1.0, 136 | ), 137 | ]; 138 | } 139 | -------------------------------------------------------------------------------- /strings.dart: -------------------------------------------------------------------------------- 1 | class Strings { 2 | 3 | // Network and Security 4 | static const String TRANSPORT_PROTOCOL = 'http://'; 5 | static const String WEB_CONNECTOR = '192.168.0.23'; 6 | static const String AUTHENTICATED = 'AUTHENTICATED'; 7 | static const String FINGERPRINT_ENABLED = 'FINGERPRINT_ENABLED'; 8 | static const String BACKEND = 'DevOps_Backend/'; 9 | static const String CONTENT_TYPE = 'Content-Type'; 10 | static const String JSON_HEADER = 'application/json; charset=UTF-8'; 11 | static const String TERMS_CONDITIONS_URL = TRANSPORT_PROTOCOL + WEB_CONNECTOR + BACK_SLASH + BACKEND + 'termsandconditions.html'; 12 | 13 | // Result / Error Messages 14 | static const String SUCCESS = 'Success'; 15 | static const String SYSTEM_ERROR = 'Adding the Data into System Failed'; 16 | static const String REG_SUCCESS = 'Registration Successful'; 17 | static const String DEL_FAILURE = 'Deleting the Data into System Failed'; 18 | static const String UNIQUE_ID = 'UniqueID'; 19 | 20 | // Alert Header 21 | static const String ALERT_HDR_SYSTEM_ERROR = 'System Data Failure'; 22 | static const String ALERT_HDR_DATA_INPUT_MISSING = 'Data Input Missing'; 23 | static const String ALERT_HDR_REG_SUCCESS = 'Registration Successful'; 24 | static const String ALERT_HDR_UPD_SUCCESS = 'Update Successful'; 25 | static const String ALERT_HDR_DEL_SUCCESS = 'Deletion Successful'; 26 | static const String ALERT_HDR_DEL_FAILURE = 'Deletion Failure'; 27 | static const String ALERT_HDR_ARE_YOU_SURE = 'Are you sure ?'; 28 | static const String ALERT_HDR_USR_PRESENT = 'User Name already Present'; 29 | static const String ALERT_HDR_TERMS_NOT_ACCEPTED = 'Terms & Conditions Not Accepted'; 30 | 31 | // Alert Body 32 | static const String ALERT_BDY_SYSTEM_ERROR = 'The data which is provided is wrong. Please correct your data...'; 33 | static const String ALERT_BDY_DATA_INPUT_MISSING = 'Please provide all the required data. Some fields are not filled or selected.'; 34 | static const String ALERT_BDY_ARE_YOU_SURE = 'Do you want to exit an App ?'; 35 | static const String ALERT_BDY_USR_PRESENT = 'Please provide a different User Name'; 36 | static const String ALERT_BDY_TERMS_NOT_ACCEPTED = 'Please Accept the Terms & Conditions by Clicking the Check Box'; 37 | 38 | // Common Items 39 | static const String APP_NAME = 'Devops Demo Update'; 40 | static const String OK = 'OK'; 41 | static const String YES = 'Yes'; 42 | static const String NO = 'No'; 43 | static const String FONT = 'Montserrat'; 44 | static const String EMPTY_STRING = ''; 45 | static const String LINE_BREAK = '\n'; 46 | static const String SPACE = ' '; 47 | static const String DOT = '.'; 48 | static const String HYPHEN = '-'; 49 | static const String PLUS = '+'; 50 | static const String ROLE_USR = 'User'; 51 | static const String CHN_IMG_PATH = 'lib/resources/images/krce.png'; 52 | static const String FOR = 'for'; 53 | static const String BACK_SLASH = '/'; 54 | static const String POST = 'POST'; 55 | 56 | // Page Routes 57 | static const String PG_RT_MM_TAB_USR = '/MainMenuTabUser'; 58 | static const String PG_RT_HM = '/HomeScreen'; 59 | 60 | // JSON DB Objects 61 | static const String DB_USER_NAME = 'UserName'; 62 | static const String DB_FIRST_NAME = 'FirstName'; 63 | static const String DB_LAST_NAME = 'LastName'; 64 | static const String DB_ROLE = 'Role'; 65 | static const String DB_PASSWORD = 'Password'; 66 | static const String DB_PROFILE = 'Profile'; 67 | static const String DB_OPERATION = 'Operation'; 68 | static const String DB_STATUS = 'Status'; 69 | 70 | // Hint Text 71 | static const String HINT_USER_NAME = 'User Name'; 72 | static const String HINT_PASSWORD = 'Password'; 73 | static const String HINT_FIRST_NAME = 'First Name'; 74 | static const String HINT_LAST_NAME = 'Last Name'; 75 | static const String HINT_CREATE_ACCOUNT = 'Create Account'; 76 | static const String HINT_UPDATE_ACCOUNT = 'Update Account'; 77 | static const String HINT_HELLO_USER = 'Hello User'; 78 | static const String HINT_LOGIN_ACCOUNT = 'Login into your Account'; 79 | 80 | // Page Titles 81 | static const String TITLE_DPSR_BOJ_BUY_FOOD_PRDS = 'Sell Food Products'; 82 | static const String TITLE_DPSR_PRODUCT_NAME = 'Products NAME'; 83 | static const String TITLE_DPSR_STUDENT = 'STUDENT'; 84 | static const String TITLE_DPSR_SERVICES = 'SERVICES'; 85 | static const String TITLE_DPSR_SPONSOR = 'SPNSOR'; 86 | static const String TITLE_DPSR_END = 'END'; 87 | static const String TITLE_STUDENT = 'STUDENT DETAILS'; 88 | static const String TITLE_College = 'COLLEGE DETAILS'; 89 | static const String TITLE_Subject = 'SUBJECT DETAILS'; 90 | static const String TITLE_DPSR_REG_NO = 'STUDENT NAME'; 91 | static const String TITLE_DPSR_ROLL_NO = 'STUDENT ID'; 92 | static const String TITLE_DPSR_MARKS = 'STUDENT COLLEGE'; 93 | static const String TITLE_DPSR_NAME = 'STUDENT COURSE'; 94 | static const String TITLE_DPSR_COLL_NAME = 'COLLEGE NAME'; 95 | static const String TITLE_DPSR_COLL_ID = 'COLLEGE ADDRESS'; 96 | static const String TITLE_DPSR_COLL_PLACE = 'COLLEGE SUBJECTS'; 97 | static const String TITLE_DPSR_SUB_NAME = 'MOBILE COMPUTING'; 98 | static const String TITLE_DPSR_SUB_CODE = 'ARTIFICAL INTELLIGENCE'; 99 | static const String TITLE_DPSR_SUB_CREDIT = 'INERNET OF THINGS'; 100 | static const String TITLE_DPSR_SUB_GRADE = 'COMPUTER NETWORKS'; 101 | static const String TITLE_DPSR_SUB_NUMBER = 'MPMC'; 102 | static const String TITLE_DPSR_SUB_NUMBERS = 'THEORY OF AUTOMATA'; 103 | static const String TITLE_DPSR_OUR_SPONSERS = 'Sell Food Products'; 104 | 105 | static const String TITLE_BOJ_VIEW_BOOK_CATERERS = 'Cooking Instructions'; 106 | static const String TITLE_BOJ_BUY_FOOD_PRDS = 'Buy Food Products'; 107 | static const String TITLE_MMM_MMM_REGISTRATION = 'Family Registration'; 108 | static const String TITLE_MMM_VARAN_VADHU_LIST = 'Family Details'; 109 | static const String TITLE_MMM_VIEW_EDIT_DELETE_PROFILE = 'View/Edit/Delete your Profile'; 110 | static const String TITLE_MMM_LATEST_NEWS = 'Latest News'; 111 | static const String TITLE_OUS_CRT_APPT = 'Create an Appointement to Doctor'; 112 | static const String TITLE_OUS_VW_APPT = 'View Your Appointment'; 113 | static const String TITLE_OUS_REGISTRATION = 'Doctor Registration'; 114 | static const String TITLE_OUS_APPTS = 'Doctor Appointments'; 115 | static const String TITLE_VAT_BUY = 'Buy/For Rent/For Lease Land/House/Office'; 116 | static const String TITLE_VAT_SELL = 'Sell/Rent/Lease Land/House/Office'; 117 | static const String TITLE_VAT_VIEW_EDIT_DELETE_PROFILE = 'View/Edit/Delete your created Profile'; 118 | static const String TITLE_DPSR_ABOUT_US = 'About Us'; 119 | static const String TITLE_DPSR_CONTACT_US = 'Contact Us'; 120 | static const String TITLE_DPSR_OUR_SERVICES = 'Our Services'; 121 | static const String TITLE_DPSR_BE_SPONSER = 'Be a Sponsor'; 122 | static const String TITLE_VID_VIEW_DOWNLOAD_DES = 'View Schools'; 123 | static const String TITLE_VID_VIEW_DOWNLOAD_DIV = 'View Colleges'; 124 | static const String TITLE_FORGOT_PWD_FORGOT_PWD = 'Forgot Password'; 125 | static const String TITLE_KAI_KAINKARYAM = 'Request for Charity'; 126 | static const String TITLE_KAI_VIEW_REQUESTS = 'View List of Requests'; 127 | static const String TITLE_KAI_VIEW_EDIT_DELETE_PROFILE = 'View/Edit/Delete your created Profile'; 128 | static const String TITLE_LGN_LOGIN = 'Login'; 129 | static const String TITLE_MM_TB_MM = 'Family'; 130 | static const String TITLE_MM_TB_VEDKAR = 'Work'; 131 | static const String TITLE_MM_TB_OUS = 'Health'; 132 | static const String TITLE_MM_TB_VID = 'Education'; 133 | static const String TITLE_MM_TB_BOJ = 'Food'; 134 | static const String TITLE_MM_TB_VAT = 'Housing'; 135 | static const String TITLE_MM_TB_SAS = 'Knowledge'; 136 | static const String TITLE_MM_TB_KAI = 'Charity'; 137 | static const String TITLE_MM_TB_DPSR = 'About Us'; 138 | static const String TITLE_MM_TB_ADMOPR = 'Admin Operations'; 139 | static const String TITLE_SAS_40_SAMSKARAM = 'Genres'; 140 | static const String TITLE_VED_SELECT_CITY = 'Please Select the City'; 141 | static const String TITLE_KAR_JOB_CLASSIFIEDS = 'Job Classifieds'; 142 | static const String TITLE_VED_VED_REGISTRATION = 'Job Registration'; 143 | static const String TITLE_VED_PROF_LIST = 'Professionals List'; 144 | static const String TITLE_VED_FRESH_LIST = 'Freshers List'; 145 | static const String TITLE_VED_KAR_JOB_CLASSIFIEDS = 'Job Classifieds'; 146 | static const String TITLE_VED_VIEW_EDIT_DELETE_PROFILE = 'View/Edit your created Profile'; 147 | static const String TITLE_VED_PROFESSIONALS_DETAILS = 'Professionals Details'; 148 | static const String TITLE_VED_FRESHERS_DETAILS = 'Freshers Details'; 149 | static const String TITLE_VAT_PROPERTIES_DETAILS = 'Properties Details'; 150 | static const String TITLE_KAI_KAI_REGISTRATION = 'Service Registration'; 151 | static const String TITLE_SELECT_IMAGE = 'Select Image'; 152 | 153 | // Drop Down Text 154 | static const String DD_HINT_SEL_REASON = 'Please Select your Reason'; 155 | 156 | // Details 157 | static const String DET_MMM_REG_INPUT_REQ_FIELDS = 'Please Input all the required fields...'; 158 | static const String DET_HM_NOT_AUTHORIZED = 'Not Authorized'; 159 | static const String DET_HM_AUTHORIZED = 'Authorized'; 160 | static const String DET_HM_AUTH = 'Authenticating'; 161 | static const String DET_HM_LOGIN_METHOD = 'Login by Fingerprint or Face ID or Iris'; 162 | static const String DET_HM_ERR = 'Error - '; 163 | static const String DET_HM_OS_DETERMINE = 'Let OS determine authentication method'; 164 | static const String DET_LGN_FORGOT_PWD = 'Forget your password ?'; 165 | static const String DET_LGN_REGISTER_PT1 = 'Do not have account ?'; 166 | static const String DET_LGN_REGISTER_PT2 = 'Register Now'; 167 | static const String DET_MM_TB_WEL = 'Welcome '; 168 | static const String DET_MM_TB_GREET_MOR = 'Good Morning'; 169 | static const String DET_MM_TB_GREET_NOON = 'Good Afternoon'; 170 | static const String DET_MM_TB_GREET_EVE = 'Good Evening'; 171 | static const String DET_SIGN_UP_TERMS_CONDITIONS_PT1 = 'I had Read and agreed to the '; 172 | static const String DET_SIGN_UP_TERMS_CONDITIONS_PT2 = 'Terms & Conditions'; 173 | static const String DET_SIGN_UP_ACCOUNT_PRESENT_PT1 = 'Already have an account ?'; 174 | static const String DET_SIGN_UP_ACCOUNT_PRESENT_PT2 = 'Login'; 175 | static const String DET_FORGOT_PWD_YOUR_PASSWORD = 'Your Password is : '; 176 | 177 | // Button Text 178 | static const String BTN_TITLE_REGISTER = 'Register'; 179 | static const String BTN_TITLE_UPDATE = 'Update'; 180 | static const String BTN_TITLE_DELETE = 'Delete'; 181 | static const String BTN_TITLE_GET_PWD = 'Get Password'; 182 | static const String BTN_TITLE_LOGIN = 'Login'; 183 | static const String BTN_TITLE_REGISTER_NOW = 'Register Now'; 184 | static const String BTN_TITLE_LOGIN_NOW = 'Login Now'; 185 | static const String BTN_TITLE_SIGN_UP = 'Sign Up'; 186 | static const String BTN_TITLE_DOB = 'Submit'; 187 | 188 | // Shared Pref Keys 189 | static const String SHARED_PREF_USER_NAME = 'key_username'; 190 | static const String SHARED_PREF_FINGER_PRINT = 'key_fingerprint'; 191 | static const String SHARED_PREF_ROLE = 'key_role'; 192 | 193 | // BE File Name 194 | static const String BE_FILE_USR_EDT_PRF = 'editprofile.php'; 195 | static const String BE_FILE_USR_FORGOT_PWD = 'forgotpassword.php'; 196 | static const String BE_FILE_USR_LOGIN = 'login.php'; 197 | static const String BE_FILE_USR_REG_PRF = 'registerprofile.php'; 198 | static const String BE_FILE_USR_VIEW_PRF = 'viewprofile.php'; 199 | static const String BE_FILE_USR_DEL_PRF = 'deleteprofile.php'; 200 | 201 | // Status Codes 202 | static const int STATUS_CODE_OK = 200; 203 | static const int STATUS_CODE_SUCCESS = 201; 204 | } --------------------------------------------------------------------------------