« first day (2371 days earlier)      last day (1612 days later) » 

5:23 AM
Good Morning All
 
 
2 hours later…
7:19 AM
Any body integrated stripe payment gateway in android ?
can you please help me if any one knows ?
 
7:43 AM
Anyone here who knows Flutter
I need some help
 
 
2 hours later…
9:17 AM
@Anjan shayad robin
 
ohhh
@RobinHood
 
o_0?
 
I need some help in flutter
@RobinHood i need to make textspan clickable in Textpainter
 
22
A: Gesture detection in Flutter TextSpan

Putra ArdiansyahYou can improve by yourself import 'package:flutter/gestures.dart'; ... new RichText( text: new TextSpan(text: 'Non touchable. ', children: [ new TextSpan( text: 'Tap here.', recognizer: new TapGestureRecognizer()..onTap = () => print('Tap Here onTap'), ...

 
Yes I tried that but my issue is something like this..
 
9:42 AM
No idea
 
10:14 AM
(sad)
Thanks Robin
 
 
1 hour later…
11:36 AM
@Shubhank
 
11:51 AM
haan
 
1 mint
is this correct way?
@Shubhank
 
yup, you can also use axios to make a common base class with all headers and response validation
 
will check axios
Now I need response in the component from where this function will be called?
Interface will work in this case?
 
you are using await
so simply return the response json
 
12:07 PM
return? same as java?
 
yup
 
can you give me any simple example?
if (response.status >= 200 && response.status < 300) {
Alert.alert("authenticated successfully!!!");
console.debug(json.data);
const json = await response.json();
return json;

}
 
yup
and call it like
 
like?
 
async componentDidMount() {
let value = await APIClass.getList();
}
 
12:14 PM
"const" is final keyword?
 
yup
use const as well
no issue
 
@Shubhank can I put this inside any function? like onButtonPress?
 
yup, try just declare it async
 
12:29 PM
@Shubhank can I call directly on button click?
 
yup
 
 <CustomButton onPress={()=> this.componentDidMount()} >{StringConstants.loginButtonLabel}</CustomButton>
async componentDidMount() {
const data = {
UserName: this.state.emailAddress,
Password: this.state.passWord,
AppId:AppConstants.AppID,
DeviceType:'2',
DeviceId:'c0hDzpAojZ4%3AAPA91bG1BirZycL1IejUR0PBqCp1tte4x77zDwuJGae7M62ievKGQCt2zRx0gdCJVEf1-zijBZYxldS1c8_V6PC7G5mh9auzbolXtb8aV2pd_6Dg8vB-r-rN7IqqeVzCehijr73eybn6'
};

const value = await ApiClient(data,login);
console.debug("Response in login"+value);
}
right direction?
 
are
rename then componentDidMount to buttonPRess
componentDidMount is lifecycle method
 
12:50 PM
haha
kuch jyada hi spoon feeding ho gayi :D
so can I run buttonPress function without componentDidMount ?
@Shubhank return response successfully. Thanks bhai
@Shubhank bas ye samj nahi aaya..
 
1:35 PM
koi na
baad me
kabhi
 

« first day (2371 days earlier)      last day (1612 days later) »