Posts

Showing posts from September, 2019

Fetch data from the Soap Webservice

Fetch data from the Soap Webservice F etching data from the Web service is necessary for most apps. Thankfully, Dart and Flutter provide tools, such as the  http  package, for this type of work Add the Packages   as a dependency and make necessary imports respectively dependencies : flutter : sdk : flutter cupertino_icons : ^0.1.2 http : xml : html_unescape : Run  flutter packages get  to download the package  2.  Add import statements to import necessary packages in your dart file. import 'package:flutter/material.dart' ; import 'package:flutter/services.dart' ; import 'package:http/http.dart' as http; import 'dart:convert' ; import 'package:async/async.dart' ; import 'package:xml/xml.dart' as xml; 3. Make a network request Put this function in your dart file  Future<int> _isGetdata(String number, String Number) async { String url = "url/method_name?Parameter1= "1" &Paramet

Create splash screen in Flutter

Create splash screen in Flutter   I mport the  image file  We need to import the image files into the project. It is common practice to put image files in a  images  or  assets  folder at the root of a Flutter project. Declare the Image in the  pubspec.yaml pubspec.yaml - flutter: uses-material-design: true assets: - images/flutterwithlogo.png main.dart File import 'package:flutter/material.dart' ; import 'package:flutter/services.dart' ; import 'SplashPage.dart' ; import 'HomePage.dart' ; void main() => runApp( MyApp ()); class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { // Fixing App Orientation. SystemChrome. setPreferredOrientations ( [DeviceOrientation. portraitUp , DeviceOrientation. portraitDown ]); return new MaterialApp ( debugShowCheckedModeBanner: false , title: 'Flutter De