tencent_wechat_camera_picker 3.6.5+2 copy "tencent_wechat_camera_picker: ^3.6.5+2" to clipboard
tencent_wechat_camera_picker: ^3.6.5+2 copied to clipboard

discontinuedreplaced by: wechat_camera_picker

A camera picker based on WeChat's UI which is a separate runnable extension to wechat_assets_picker.

example/lib/main.dart

// Copyright 2019 The FlutterCandies author. All rights reserved.
// Use of this source code is governed by an Apache license that can be found
// in the LICENSE file.

import 'dart:ui' as ui;

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_localizations/flutter_localizations.dart';

import 'extensions/color_extension.dart';

/// Common picking methods are defined in [pickMethods].
/// 常见的选择器调用方式定义在 [pickMethods]。
import 'models/picker_method.dart';

import 'pages/splash_page.dart';

const Color themeColor = Color(0xff00bc56);

String? packageVersion;

void main() {
  runApp(const MyApp());
  SystemChrome.setSystemUIOverlayStyle(
    SystemUiOverlayStyle.dark.copyWith(statusBarColor: Colors.transparent),
  );
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'WeChat Camera Picker Demo',
      theme: ThemeData(
        brightness: MediaQueryData.fromWindow(ui.window).platformBrightness,
        primarySwatch: themeColor.swatch,
        textSelectionTheme: const TextSelectionThemeData(
          cursorColor: themeColor,
        ),
      ),
      home: const SplashPage(),
      localizationsDelegates: const <LocalizationsDelegate<dynamic>>[
        GlobalWidgetsLocalizations.delegate,
        GlobalMaterialLocalizations.delegate,
        GlobalCupertinoLocalizations.delegate,
      ],
      supportedLocales: const <Locale>[
        Locale('en'), // English
        Locale('zh'), // Chinese
      ],
      locale: const Locale('en'),
    );
  }
}
3
likes
75
points
122
downloads

Publisher

verified publishercomm.qq.com

Weekly Downloads

A camera picker based on WeChat's UI which is a separate runnable extension to wechat_assets_picker.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

camera, camera_platform_interface, flutter, path, photo_manager, system_info2, video_player

More

Packages that depend on tencent_wechat_camera_picker