wechat_camera_picker_plus 1.0.3 copy "wechat_camera_picker_plus: ^1.0.3" to clipboard
wechat_camera_picker_plus: ^1.0.3 copied to clipboard

A camera picker for Flutter projects based on WeChat's UI, which is also a separate runnable extension to the wechat_assets_picker_plus.

example/lib/main.dart

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.fromView(View.of(context)).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'),
    );
  }
}
0
likes
140
points
66
downloads
screenshot

Publisher

unverified uploader

Weekly Downloads

A camera picker for Flutter projects based on WeChat's UI, which is also a separate runnable extension to the wechat_assets_picker_plus.

Repository (GitHub)
View/report issues

Topics

#picker #camera #image #video #wechat

Documentation

API reference

License

MIT (license)

Dependencies

camera, camera_platform_interface, collection, flutter, meta, path, photo_manager, photo_manager_image_provider, sensors_plus, uuid, video_player, wechat_picker_library

More

Packages that depend on wechat_camera_picker_plus