bilions_ui 0.0.3 copy "bilions_ui: ^0.0.3" to clipboard
bilions_ui: ^0.0.3 copied to clipboard

Bilions UI components | This package is modified version of material UI with custom made alert, confirm, image preview, toast widgets.

Bilions UI Components #

This package is currently in beta

Preview

Functions #

Alert
alert(
  'Title here',
  'Description here',
  type: 'warning', 
)

  • type success, waring, danger, info
Toast
toast('Confirmed', type: 'success');

  • type success, waring, danger, info
Confirm Dialog
confirm(ConfirmDialog(
    'Are you sure?', 
    confirmed: () {
      // do something here
    },
  ),
)
Image Picker
openUploader(context, (FileInfo file) {
  console.log(file.path);
});
  • add below lines in ios->Runner->info.plist
<key>NSPhotoLibraryUsageDescription</key>
<string>Allow Image access to upload your profile image</string>
<key>NSCameraUsageDescription</key>
<string>Allow Image access to upload your profile image</string>
Image Preview
preview([
  'https://picsum.photos/id/237/536/354',
  'https://picsum.photos/id/238/536/354',
  'https://picsum.photos/id/239/536/354',
])

menu(
  MenuList([
    MenuListItem(
      Icon(
        Icons.edit,
        size: 20,
      ),
      title: 'Edit',
      onPressed: () {
        // do something
      },
    ),
  ])
)

Component Widgets #

Avatar Image
Avatar(
  'https://i.pravatar.cc/150?img=3',
  title: 'Zin Kyaw Kyaw',
  subTitle: '[email protected]',
)
Image Slider
ImageSlider([
  'https://picsum.photos/id/237/536/354',
  'https://picsum.photos/id/238/536/354',
  'https://picsum.photos/id/239/536/354',
])
Primary Button
PrimaryButton(
  'Button Title',
  onPressed: () {
    // do something
  },
)
Secondary Button
SecondaryButton(
  'Button Title',
  onPressed: () {
    // do something
  },
)
Card
CardWidget(
  header: const Avatar(
    'https://i.pravatar.cc/150?img=3',
    title: 'Zin Kyaw Kyaw',
    subTitle: '[email protected]',
  ),
  body: Column(
    children: const [
      Span(
        "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
      )
    ],
  ),
  footer: const Text('This is footer'),
)
18
likes
120
pub points
72%
popularity

Publisher

verified publisherbilions.org

Bilions UI components | This package is modified version of material UI with custom made alert, confirm, image preview, toast widgets.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

carousel_slider, flutter, flutter_svg, image_picker, intl, logger, path, photo_view

More

Packages that depend on bilions_ui