• Stars
    star
    333
  • Rank 126,599 (Top 3 %)
  • Language
    Dart
  • License
    MIT License
  • Created almost 2 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Camera Universal

Install

flutter pub add camera_universal

Quickstart

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:camera_universal/camera_universal.dart';
void main(List<String> args) async {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(
    const MaterialApp(
      home: MainApp(),
    ),
  );
}
class MainApp extends StatefulWidget {
  const MainApp({
    super.key,
  });
  @override
  State<MainApp> createState() => _MainAppState();
}
class _MainAppState extends State<MainApp> {
  CameraController cameraController = CameraController();
  @override
  void initState() {
    super.initState();
    task();
  }
  Future<void> task() async {
    await cameraController.initializeCameras();
    await cameraController.initializeCamera(
      setState: setState,
    );
    await cameraController.activateCamera(
      setState: setState,
      mounted: () {
        return mounted;
      },
    );
  }
  @override
  void dispose() {
    cameraController.dispose();
    super.dispose();
  }
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Camera(
        cameraController: cameraController,
        onCameraNotInit: (context) {
          return const SizedBox.shrink();
        },
        onCameraNotSelect: (context) {
          return const SizedBox.shrink();
        },
        onCameraNotActive: (context) {
          return const SizedBox.shrink();
        },
        onPlatformNotSupported: (context) {
          return const SizedBox.shrink();
        },
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () async {
          if (kDebugMode) {
            print(
            cameraController.action_change_camera(
              camera_id: 1,
              setState: setState,
              mounted: () {
                return mounted;
              },
              onCameraNotInit: () {},
              onCameraNotSelect: () {},
              onCameraNotActive: () {},
            ),
          );
          }
        },
        child: const Icon(
          Icons.add_circle_outline_sharp,
        ),
      ),
    );
  }
}

More Repositories

1

whisper

Whisper Dart is a cross platform library for dart and flutter that allows converting audio to text / speech to text / inference from Open AI models
C++
527
star
2

telegram_client

Telegram Client Library To make it easier and faster for you to create programs that interact with the Telegram API, MTProto, TDlib, Telegram-bot-API with customizable features so that you can create bot / userbot / app (Dart / Flutter) programs on a large / business scale
Dart
407
star
3

play

Flutter Library For Play Video and Audio cross platform support
Dart
360
star
4

bark

WIP Library Text To Speech From Suno AI's Bark in C/C++ for fast inference
C++
352
star
5

telegram

Telegram Flutter OpenSource
Dart
347
star
6

AzkaOs

open source operating system based flutter and kernel zircon
Dart
345
star
7

terminal_flutter

Terminal Flutter Cross platform with flutter and dart
Dart
344
star
8

webview_universal

Webview Flutter Cross platform
C++
344
star
9

llama

LLaMA (Language Learning for Machine Translation) adalah proyek riset yang diprakarsai oleh Facebook AI Research (FAIR) yang bertujuan untuk meningkatkan kualitas terjemahan mesin menggunakan pendekatan yang lebih alami dan berfokus pada bahasa asal.
C++
342
star
10

ntts

Neural Text To Speech Di Dart Cepat Ringan Tanpa Koneksi Internet dan bisa berjalan di cpu
C++
340
star
11

whatsapp

Whatsapp Client Tidak Resmi Untuk DART & FLUTTER (hanya support desktop only)
Dart
339
star
12

operating_system_guide

Operating System Guide Dari 0
Assembly
339
star
13

zig_cheatsheet

Zig adalah bahasa pemrograman dan toolchain tujuan umum untuk memelihara perangkat lunak yang kuat, optimal, dan dapat digunakan kembali.
Zig
339
star
14

miniaudio

C
337
star
15

midtrans

Midtrans Payment Gateway Indonesia
Dart
337
star
16

onnx

ONNX DART LIBRARY
C++
337
star
17

telegram_keep_account_dart

Telegram keep account dart, source code untuk menyimpan account telegram tanpa applikasi di desktop, unlimited account
Dart
337
star
18

glx_telegram_bot

GLX TELEGRAM BOT
Dockerfile
336
star
19

freeform

C++
336
star
20

glx_gram

WIP GLX Gram Telegram Open source dari pengganti Azkagram
Dart
336
star
21

record_widget

Record Widget Flutter realtime fast and efficient and can make automation To Video
C++
336
star
22

jaseb_userbot_telegram

Jaseb Userbot Telegram Basic Open Source
Dart
336
star
23

oy

Dart
336
star
24

webify

Webify Framework Untuk Membangun app web dengan style code flutter
Dart
336
star
25

json_to_dart_flutter

JSON TO DART application flutter cross platform
Dart
336
star
26

products_telegram_userbot_lifetime

Telegram Userbot Life Time Multi Client Support Repeat MEssage / Jaseb / Sebar List
C++
335
star
27

rest_api_dart

Simple rest api dari bahasa code dart vm menggunakan frameworkd alfred
Dart
335
star
28

packagex

Dart
335
star
29

game

Wip Game Engine Library Dart And Flutter Support
C++
335
star
30

galaxeus

Galaxeus library
Dart
335
star
31

github_client

Github Client Api
Dart
335
star
32

glx_lib.cpp

CPP Library for make program more easy with readable syntax
C++
335
star
33

isar_inspector

Isar inspector local
Dart
335
star
34

payment_gateway

Full Berbagai Payment Gateway Dalam 1 Library Bisa Di Berbagai Platform Flutter Dan Dart
C++
335
star
35

jsonview

library untuk membuat app / widget dari data json
C++
335
star
36

glx_telegram_userbot

GLX Telegram Userbot
Dockerfile
335
star
37

autopost_telegram_bot_dart

AutoPost Telegram bot dari bahasa code dart
Dart
335
star
38

fetch_api_bmkg_dart

Fetch / Scrape api Bmkg dart simple menggunakan library http dan galaxeus
Dart
335
star
39

products_telegram_bot

Telegram Bot General Multi Manage Group, Channel, Private
C++
335
star
40

nokos_telegram_generator_test_dc

NOKOS TELEGRAM GENERATOR TEST DC
C++
335
star
41

azka_studio_code

C++
335
star
42

telegram_userbot_dart

Telegram Userbot dart simple menggunakan library telegram client dan bahasa code dart + tdlib
Dart
335
star
43

glx_whatsapp_userbot

GLX Whatsapp Userbot
Dockerfile
334
star
44

twitter_auto_post_bot_dart

Twitter Auto Post Bot Dart
Dart
334
star
45

telegram_bot_dart

Telegram bot dart simple menggunakan library telegram client
Dart
334
star
46

demo_telegram_bot

334
star
47

termux

WIP TERMUX FLUTTER LIBRARY
C++
334
star
48

paas

Wip Full Open Source PAAS Platform As Services With Language Dart And Flutter Framework
C++
334
star
49

proxmox

C++
334
star
50

tgs

Telegram Animation Sticker
C++
334
star
51

AzkaDevOS

AzkaDev OS Linux Distro untuk developer
JavaScript
334
star
52

azkagram

AZKAGRAM Telegram Unnoficial Yang berfokus pada design + fitur yang tidak ada di Telegram Resmi
C++
334
star
53

emulator

C++
334
star
54

flutter_3d_native

C++
334
star
55

drive_gram

C++
333
star
56

specta

Specta Open source app and ecosystem untuk edukasi + portofolio saya:V
333
star
57

products_telegram_bot_ai

Telegram Bot Local Ai Indonesia
C++
333
star
58

telegram_bot_keep_dart

Telegram Bot Keep untuk menyimpan akunbot telegram dengan jumlah unlimited
Dart
333
star
59

readme_update

Dart
333
star
60

smartphone_tool

C++
333
star
61

specta_apis_scheme

Dart
333
star
62

demo_telegram_userbot

333
star
63

chatbot_flutter

Chatbot Flutter Realtime + backend websocket dart
C++
333
star
64

onnxruntime.cpp

333
star
65

supabase_client

Dart
333
star
66

chrome_multi

Dart
333
star
67

isarx

Dart
333
star
68

next_gen_ui

333
star
69

bootloader_simple

333
star
70

stable_diffusion

Wip Stable Diffusion Dart
C++
333
star
71

telegraph

Telegraph Client Api in dart support cross platform flutter apps
Dart
333
star
72

menfess_telegram_bot_dart

Menfess Telegram bot dart indonesia
Dart
333
star
73

edge

Running Dart Edge Rest api on most platform (supabase, Cloudflare, vercel, netlify and more).
C++
333
star
74

products_whatsapp_bot

C++
333
star
75

codespaces

Shell
333
star
76

tcpsocket_dart

Tcp Socket Client dan server auto reconnect menggunakan bahasa code dart vm
Dart
333
star
77

twitter_client

Twitter Client api Library mudah di gunakan
Dart
332
star
78

whatsapp_bot_dart

Whatsapp bot Dart example
Dart
332
star
79

tensorflow_native

Dart
332
star
80

dart_vercel

Dart
332
star
81

dart_cheatsheet

Dart
332
star
82

speech_to_text_telegram_bot_dart

Speech To Text Telegram Bot Dart
Dart
332
star
83

speed_code_flutter

Speed Code flutter experiment flutter widget to video
C++
332
star
84

code_shot_flutter

Code Shot, Code to image flutter
C++
332
star
85

telegram_cli

332
star
86

products_general_machine_system_services

General Machine System Services
C++
332
star
87

coinlox_miner

332
star
88

telegram_bot_api_android

332
star
89

telegram_keep_account_app

Telegram Keep Account App
C++
332
star
90

azka_userbot_telegram

AZKADEV Userbot TELEGRAM Simple Hanya untuk sumber belajar!
Dart
332
star
91

jasa_developer

Jasa Developer Dart & Flutter (App - Web - Backend - api - database - bot - userbot - ai - automation)
C++
332
star
92

websocket_dart

Websocket client dan server auto reconnect menggunakan bahasa code dart vm
Dart
332
star
93

telegram_userbot_gratis

Telegram Userbot Gratis LIFE TIME Bisa buat spam / delay spam / repeat message / jaseb
C++
332
star
94

local_ai_app_gratis

LOCAL AI APP GRATIS / DEMO Memerlukan Akun Github
C++
332
star
95

tgcalls

C++
332
star
96

neofetch

332
star
97

fuchsia

331
star
98

azkadev.github.io

JavaScript
331
star
99

baas

Wip Open Source BAAS Backend As Services With Language Dart And Flutter Framework
331
star
100

docker

Docker dart library
Dart
331
star