Skip to content

Instantly share code, notes, and snippets.

View hiahmad30's full-sized avatar
🏠
Working from home

Ahmad Javed hiahmad30

🏠
Working from home
View GitHub Profile
@DevWael
DevWael / product.php
Last active August 15, 2021 19:29
get all products in opencart 3.0 api
<?php
class ControllerApiProduct extends Controller {
public function index() {
$this->load->language( 'api/cart' );
$this->load->model( 'catalog/product' );
$this->load->model( 'tool/image' );
$json = array();
$json['products'] = array();
$filter_data = array();
@aravindhkumar23
aravindhkumar23 / camera_view.dart
Last active March 19, 2021 20:44
Flutter Camera view with + button to open gallery (captured image and gallery picked image will be shown in horizontal scrollable view in bottom like whatsapp)
import 'dart:async';
import 'dart:io';
import 'package:camera/camera.dart';
import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';
import 'package:path_provider/path_provider.dart';
import '/utils.dart';