This file contains hidden or 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 TableViewCustomDataSource<Model>: NSObject,UITableViewDataSource{ | |
| typealias CellConfigurator = (Model,UITableViewCell)-> Void | |
| var models:[Model] | |
| private let reuseIdentifier:String | |
| private let cellConfigurator: CellConfigurator | |
| init(models:[Model],reuseIdentifier:String,cellConfigurator:@escaping CellConfigurator) { | |
  
    
      This file contains hidden or 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
    
  
  
    
  | extension ItemsListsViewController:UITableViewDelegate,UITableViewDataSource{ | |
| func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { | |
| return 80.0 | |
| } | |
| func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { | |
| return itemLists.count | |
| } | |
| func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { | 
  
    
      This file contains hidden or 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" | |
| }, | 
  
    
      This file contains hidden or 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
    
  
  
    
  | let json = """ | |
| [{ | |
| "first_name": "Shakti", | |
| "last_name": "prakash", | |
| "age":25, | |
| "address":"Cuttack,Odisha,India" | |
| }, | |
| { | |
| "first_name": "Soumen", | |
| "last_name": "Mohanty", | 
  
    
      This file contains hidden or 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" | |
| }, | 
  
    
      This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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); | 
NewerOlder