Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.53 KB

File metadata and controls

44 lines (32 loc) · 1.53 KB

documents_picker

A new Flutter plugin to get documents.

This Plugin is under development, but alredy works in IOS and Android

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.

How to use

You need to add these styles to the android app (app/src/main/values/styles.xml) so the plugin works.

  <style name="LibAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
      <!-- Customize your theme here. -->
      <item name="colorPrimary">@color/colorPrimary</item>
      <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
      <item name="colorAccent">@color/colorAccent</item>
      <item name="android:colorBackground">@android:color/background_light</item>
      <item name="android:windowBackground">@android:color/white</item>
  </style>

  <style name="PickerTabLayout" parent="Widget.Design.TabLayout">
      <item name="tabBackground">@color/colorPrimary</item>
      <item name="tabGravity">fill</item>
      <item name="tabMaxWidth">0dp</item>
  </style>

  <style name="SmoothCheckBoxStyle">
      <item name="color_checked">@color/checkbox_color</item>
      <item name="color_unchecked">@android:color/white</item>
      <item name="color_unchecked_stroke">@color/checkbox_unchecked_color</item>
      <item name="color_tick">@android:color/white</item>
  </style>

For use, just

List docPaths = await DocumentsPicker.pickDocuments;