Send whatsapp message without saving number
What way send message without saving number.
you can send message without saving number using our 'Whats Chat' app.
How to use 'Whats Chat' app.
it is very easy to use. You install it, open it and message by entering the number.
Whats Chat app logo look like this.
Whats chat features
- Multi Country supported.
It is easy to develop using flutter & dart code.
Simple and too small code.
import 'package:flutter/foundation. dart';
import 'package:flutter/material. dart';
import 'package:country_picker/ country_picker.dart';
import 'package:url_launcher/url_ launcher.dart';
class Home extends StatefulWidget {
const Home({Key? key}) : super(key: key);
@override
State<Home> createState() => _HomeState();
}
class _HomeState extends State<Home> {
String country = 'India';
String code = "91";
final TextEditingController _controller = TextEditingController();
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: [
Container(
padding: EdgeInsets.only(
left: 16.0,
right: 16.0,
top: MediaQuery.of(context).size. height * 0.15),
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
Align(
alignment: Alignment.center,
child: Text(
'Whats Chat',
style: Theme.of(context).textTheme. headline6,
),
),
TextFormField(
controller: _controller,
decoration: InputDecoration(
border: const OutlineInputBorder(),
prefixIcon: TextButton(
onPressed: () => showCountryPicker(
context: context,
showPhoneCode: true,
countryListTheme: CountryListThemeData(
flagSize: 25,
backgroundColor: Colors.white,
textStyle: const TextStyle(
fontSize: 16, color: Colors.blueGrey),
bottomSheetHeight:
500, // Optional. Country list modal height
//Optional. Sets the border radius for the bottomsheet.
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(20.0),
topRight: Radius.circular(20.0),
),
//Optional. Styles the search field.
inputDecoration: InputDecoration(
labelText: 'Search',
hintText: 'Start typing to search',
prefixIcon: const Icon(Icons.search),
border: OutlineInputBorder(
borderSide: BorderSide(
color:
const Color(0xFF8C98A8).withOpacity( 0.2), //
),
),
),
),
onSelect: (Country data) {
if (kDebugMode) {
print(data.phoneCode);
// print(_controller.text);
}
setState(() {
country = data.displayName;
code = data.phoneCode;
});
}),
child: Text("+$code"),
),
),
),
Padding(
padding: const EdgeInsets.only(top: 16.0),
child: SizedBox(
width: double.infinity,
child: ElevatedButton(
onPressed: () {
_launchUrl(
Uri.parse(
context);
},
child: const Padding(
padding: EdgeInsets.only(
left: 16.0, right: 16.0, top: 16, bottom: 16),
child: Text("Start chats",
style: TextStyle(fontSize: 12.0))),
),
),
),
Text("Developed By Brijesh kumar & you are here $country",
style: Theme.of(context).textTheme. caption),
],
),
),
],
));
}
}


