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

05:23
Good Morning All
 
2 hours later…
07:19
Any body integrated stripe payment gateway in android ?
can you please help me if any one knows ?
07:43
Anyone here who knows Flutter
I need some help
 
2 hours later…
09:17
@Anjan shayad robin
ohhh
@RobinHood
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..
09:42
No idea
10:14
(sad)
Thanks Robin
 
1 hour later…
11:36
@Shubhank
11:51
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
return? same as java?
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
"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
@Shubhank can I call directly on button click?
 <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
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..
13:35
koi na
baad me
kabhi

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