This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
Widget titleSection = new Container( | |
padding: const EdgeInsets.all(32.0), | |
child: new Row( | |
children: [ | |
new Expanded( | |
child: new Column( | |
crossAxisAlignment: CrossAxisAlignment.start, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class BasicList extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
print('i m in vbaaiscvclass '); | |
// TODO: implement build | |
final title = 'Basic lists'; | |
return new MaterialApp( | |
title: title, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:http/http.dart' as http; | |
import 'dart:convert'; | |
import './models/videomodel.dart'; | |
import 'views/videocell.dart'; | |
import 'package:flutter/foundation.dart'; | |
//import 'screens/coursedetails.dart'; | |
void main(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'dart:convert'; | |
import 'package:http/http.dart' as http; | |
import './views/video_cell.dart'; | |
class RealWorldApp extends StatefulWidget { | |
@override | |
State<StatefulWidget> createState() { | |
return new RealWorldState(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import '../models/videomodel.dart'; | |
// import 'package:transparent_image/transparent_image.dart'; | |
import 'package:cached_network_image/cached_network_image.dart'; | |
import 'package:flutter/foundation.dart'; | |
class VideoCell extends StatelessWidget { | |
final Video video; | |
VideoCell({Key key, this.video}) : super(key: key); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:http/http.dart' as http; | |
import 'dart:convert'; | |
import 'package:apiintegration_demo/models/videomodel.dart'; | |
import 'package:apiintegration_demo/screens/coursedetails.dart'; | |
import 'package:apiintegration_demo/views/videocell.dart'; | |
import 'package:apiintegration_demo/screens/courselist.dart'; | |
var routes = <String,WidgetBuilder>{ | |
"/home" : (BuildContext context) => MyApp(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:http/http.dart' as http; | |
import 'dart:convert'; | |
import 'package:apiintegration_demo/models/videomodel.dart'; | |
import 'package:apiintegration_demo/screens/coursedetails.dart'; | |
import 'package:apiintegration_demo/views/videocell.dart'; | |
import 'package:apiintegration_demo/utils/mainnavigator.dart'; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class ServiceHelperClass: NSObject { | |
static let shareinstance = ServiceHelperClass() | |
//MARK: post request | |
func postRequest(with url:URL, postBody:String, callback: @escaping (Any?) -> Void) -> Void { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import UIKit | |
let json = """ | |
{ | |
"firstname": "shakti", | |
"lastname": "prakash", | |
"age":25 | |
} | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import UIKit | |
let json = """ | |
[{ | |
"first_name": "Shakti", | |
"last_name": "prakash", | |
"age":25, | |
"address":"Cuttack,Odisha,India" | |
}, |
OlderNewer