Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
Vasthram
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ramesh Babu Puvvadi
Vasthram
Commits
ed221f4f
Commit
ed221f4f
authored
Oct 26, 2023
by
Ramesh Babu Puvvadi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added horizontal scrolling
parent
7bc02900
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
Home.dart
lib/Home.dart
+0
-0
RemoteData.dart
lib/RemoteData.dart
+7
-8
No files found.
lib/Home.dart
View file @
ed221f4f
This diff is collapsed.
Click to expand it.
lib/RemoteData.dart
View file @
ed221f4f
...
...
@@ -5,12 +5,11 @@ import 'package:http/http.dart' as http;
//8008202992
class
RemoteData
{
String
L
oginUrl
=
'http://vaman.plutokm.com/login'
;
String
Type
=
"Content-Type"
;
String
App_json
=
"application/json"
;
final
String
l
oginUrl
=
'http://vaman.plutokm.com/login'
;
final
String
type
=
"Content-Type"
;
final
String
appjson
=
"application/json"
;
Future
<
String
>
getLoginRequest
(
String
loginid
,
String
pass
,
String
token
)
async
{
Future
<
String
>
getLoginRequest
(
String
loginid
,
String
pass
,
String
token
)
async
{
Map
<
String
,
dynamic
>
body
=
{
'login_id'
:
loginid
,
'password'
:
pass
,
...
...
@@ -27,8 +26,8 @@ class RemoteData {
}
var
client
=
http
.
Client
();
var
res
=
await
client
.
post
(
Uri
.
parse
(
L
oginUrl
),
headers:
{
Type:
App_
json
},
body:
json
.
encode
(
body
));
var
res
=
await
client
.
post
(
Uri
.
parse
(
l
oginUrl
),
headers:
{
type:
app
json
},
body:
json
.
encode
(
body
));
if
(
res
.
statusCode
==
200
)
{
return
res
.
body
;
}
else
{
...
...
@@ -39,7 +38,7 @@ class RemoteData {
Future
<
String
?>
uploadimage
(
File
imagepath
)
async
{
try
{
final
request
=
http
.
MultipartRequest
(
'POST'
,
Uri
.
parse
(
'http://
192.168.65.123:5155
/vasthram_mobile'
));
'POST'
,
Uri
.
parse
(
'http://
vaman.plutokm.com
/vasthram_mobile'
));
request
.
files
.
add
(
await
http
.
MultipartFile
.
fromPath
(
'image'
,
imagepath
.
path
));
var
response
=
await
request
.
send
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment