changed some content from preious version
it has a feature in which when a call button is pressed in the contact us page
it directly calls to the defined phone number
the code is
launch("tel:919010590693"),
But for the call to proceed +91 is the code
so by using the escape sequence we can add any character in the flutter and in all basic programming languages
The escape Sequence is "/"
So by using
launch("tel:/+919010590693"),
we can add the character
some apps are desgned for portrait mode
when they are rotated to landscape mode the screen padding changes and app will look ugly with error of pixels
so by using this cod ein the main method of the main.dart file we can eradicate that error
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitUp,]
This will make the app to be in portrait mode and wll not rotate to landscape jus by setting both to portraitUp
If there is no internet then by addign a button go to setting we can jump from our application to settings
Where we can check our wifi or data connectionBut to this to happen we have to import this file and also
import 'package:system_setting/system_setting.dart';
set the dependencies in the pubspec.yaml file as
system_setting: ^0.1.3
After setting the packages will be downloaded
We can set the target as WIFI we will rediect to wifi setting but to set no target we can edit the system_setting.dart
by setting
case SettingTarget.Mobilenetwork:
arg = 'mobilenetwork';
break; at line no.30
and by adding
enum SettingTarget { WIFI, BLUETOOTH, NOTIFICATION, LOCATION,Mobilenetwork } at line no. 5
and in the isconnection.dart file
we can use
RaisedButton(
child: Text("Go to Settings"),
color: Colors.green,
onPressed: ()
{
SystemSetting.goto(SettingTarget.Mobilenetwork);
},
)
Also can change the target to wifi or other...