Skip to content

Commit

Permalink
App release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nimishbongale committed Jul 20, 2020
1 parent 4738d2f commit 4da3d5a
Show file tree
Hide file tree
Showing 6 changed files with 153 additions and 115 deletions.
Binary file removed assets/images/aadhaar.jpg
Binary file not shown.
Binary file removed assets/images/pan.jpg
Binary file not shown.
1 change: 0 additions & 1 deletion assets/images/po.svg

This file was deleted.

2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ class GeolocationExampleState extends State {
},
),
IconButton(
icon: Icon(Icons.chat),
icon: Icon(Icons.assistant),
onPressed: () {
// _handlePressButton();
},
Expand Down
70 changes: 48 additions & 22 deletions lib/screens/bankUploads.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class MyCustomFormState extends State<MyCustomForm> {
"uniqueId": code
});
await http.post(
'http://205afcdfb1fb.ngrok.io/account/sendOtp/',
'http://jandhan2.herokuapp.com/account/sendOtp/',
headers: <String, String>{
'Content-Type': 'application/json; charset=UTF-8',
},
Expand Down Expand Up @@ -389,28 +389,28 @@ class MyCustomFormState extends State<MyCustomForm> {
Column(
children: <Widget>[
GestureDetector(
// onTap: () => getImage(1),
onTap: () => null, //getImage(1),
child: Container(
height: 180,
child: (_aadharImage != null)
? Image.file(
_aadharImage,
fit: BoxFit.fill,
)
: Container(
height: 180,
width: 375,
decoration: BoxDecoration(
color: Colors.blueGrey[50],
borderRadius:
BorderRadius.all(Radius.circular(5.0))),
child: Padding(
padding: EdgeInsets.only(top: 75.0),
child: Column(children: <Widget>[
Icon(Icons.linked_camera),
Text('Add Passport Size Photo')
]))),
)),
height: 180,
child: (_aadharImage != null)
? Image.file(
_aadharImage,
fit: BoxFit.fill,
)
: Container(
height: 180,
width: 375,
decoration: BoxDecoration(
color: Colors.blueGrey[50],
borderRadius: BorderRadius.all(
Radius.circular(5.0))),
child: Padding(
padding: EdgeInsets.only(top: 75.0),
child: Column(children: <Widget>[
Icon(Icons.linked_camera),
Text('Add Passport Size Photo')
]))),
)),
SizedBox(
height: 15.0,
),
Expand Down Expand Up @@ -468,6 +468,32 @@ class MyCustomFormState extends State<MyCustomForm> {
SizedBox(
height: 15.0,
),
GestureDetector(
onTap: () => null, //getImage(1),
child: Container(
height: 180,
child: (_aadharImage != null)
? Image.file(
_aadharImage,
fit: BoxFit.fill,
)
: Container(
height: 180,
width: 375,
decoration: BoxDecoration(
color: Colors.blueGrey[50],
borderRadius:
BorderRadius.all(Radius.circular(5.0))),
child: Padding(
padding: EdgeInsets.only(top: 75.0),
child: Column(children: <Widget>[
Icon(Icons.linked_camera),
Text('Add Signature')
]))),
)),
SizedBox(
height: 15.0,
),
Container(
width: 375,
height: 49.0,
Expand Down
195 changes: 104 additions & 91 deletions lib/screens/updatesScreen.dart
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'dart:convert';
import 'package:url_launcher/url_launcher.dart';

class UpdateScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: UserList(),
return Scaffold(
appBar: AppBar(
title: Text('Latest Updates'),
automaticallyImplyLeading: true,
leading: IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () => Navigator.pop(context, false))),
body: UserList(),
);
}
}
Expand Down Expand Up @@ -44,7 +48,7 @@ class _UserListState extends State<UserList> {
return _users.length != 0
? RefreshIndicator(
child: ListView.builder(
padding: EdgeInsets.all(8),
padding: EdgeInsets.all(8.0),
itemCount: _users.length,
itemBuilder: (BuildContext context, int index) {
return Card(
Expand Down Expand Up @@ -93,9 +97,6 @@ class _UserListState extends State<UserList> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Latest Updates"),
),
body: Container(
child: _buildList(),
),
Expand All @@ -105,94 +106,106 @@ class _UserListState extends State<UserList> {

class DetailsScreen extends StatelessWidget {
final desc;
// In the constructor, require a Todo.

_launchURL(data) async {
if (await canLaunch(data)) {
await launch(data);
} else {
throw 'Could not launch $data';
}
}

DetailsScreen({Key key, @required this.desc}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: Scaffold(
appBar: AppBar(
title: Text('Detail Information'),
),
body: Builder(builder: (context) {
return Card(
color: Colors.white,
margin: const EdgeInsets.all(20.0),
child: Padding(
padding: const EdgeInsets.all(5.0),
child: Column(
children: <Widget>[
Text(
desc['title'],
style: TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.w700,
),
),
SizedBox(
height: 20.0,
),
Image(
image: NetworkImage(desc['imageUrl']),
),
SizedBox(
height: 20.0,
),
Center(
child: Text(
desc['description'],
style: TextStyle(
fontSize: 14.0,
fontWeight: FontWeight.w700,
),
),
),
SizedBox(
height: 20.0,
return Scaffold(
appBar: AppBar(
title: Text('Detailed Information'),
automaticallyImplyLeading: true,
leading: IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () => Navigator.pop(context, false))),
body: Builder(builder: (context) {
return Card(
color: Colors.white,
child: Padding(
padding: const EdgeInsets.all(10.0),
child: Column(
children: <Widget>[
Text(
desc['title'],
style: TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.w700,
),
),
SizedBox(
height: 20.0,
),
Image(
image: NetworkImage(desc['imageUrl']),
height: 200.0,
width: 200.0,
),
SizedBox(
height: 20.0,
),
Center(
child: Text(
desc['description'],
style: TextStyle(
fontSize: 14.0,
),
Text(
"Additional File Url " + desc['additionalFileUrl'],
),
),
SizedBox(
height: 20.0,
),
Text(
"Additional File Url",
style: TextStyle(fontWeight: FontWeight.bold),
),
GestureDetector(
onTap: () => _launchURL(desc['additionalFileUrl']),
child: Text(
desc['additionalFileUrl'],
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 14.0,
fontWeight: FontWeight.w700,
),
),
SizedBox(height: 10.0),
Text(
"Location " + desc['location'],
style: TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.w700,
),
),
SizedBox(
height: 10.0,
),
Text(
"Date and Time " + desc['date'] + " " + desc['time'],
style: TextStyle(
fontSize: 18.0,
fontWeight: FontWeight.w700,
),
),
SizedBox(
height: 10.0,
),
Text(
"Post By: " + desc['postBy'],
style: TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.w700,
),
),
],
fontSize: 14.0,
fontWeight: FontWeight.w700,
textBaseline: TextBaseline.ideographic,
color: Colors.blue[600]),
)),
SizedBox(height: 10.0),
Text(
"Location: " + desc['location'],
style: TextStyle(
fontSize: 18.0,
fontWeight: FontWeight.w700,
),
),
SizedBox(
height: 10.0,
),
),
);
})));
Text(
"Date and Time: " + desc['date'] + " " + desc['time'],
style: TextStyle(
fontSize: 18.0,
),
),
SizedBox(
height: 10.0,
),
Text(
"Posted By: " + desc['postBy'],
style: TextStyle(
fontSize: 18.0,
),
),
],
),
),
);
}));
}
}

0 comments on commit 4da3d5a

Please sign in to comment.