Coder Social home page Coder Social logo

solid-software / help_ukraine_widget Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 1.0 1.85 MB

πŸ‡ΊπŸ‡¦ Flutter widget to raise awareness of the war in Ukraine and collect donations.

License: MIT License

Swift 0.82% Dart 57.09% CMake 17.36% C++ 20.35% C 1.35% HTML 1.77% Ruby 1.26%
flutter helpukraine standwithukraine ukraine

help_ukraine_widget's Introduction

Help Ukraine Widget for Flutter

style: solid

This is a port of Help Ukraine Widget - this widget helps to let users of your app know how they can help Ukraine from anywhere in the world.

Showcase

First widget variation

First widget example

Second widget variation

Second widget example

Third widget variation

Third widget example

Fourth widget variation

Fourth widget example

Features

By installing this widget in your app, you will help to end the war in Ukraine. It will provide links for:

Getting started

Add the package as a dependency to your pubspec.yaml:

dependencies:
    help_ukraine_widget: <latest version>

in your code:

import 'package:help_ukraine_widget/help_ukraine_widget.dart';

Usage

Basic usage

Use OverlayWidget to float and align the widget above your app:

OverlayWidget(
    alignment: Alignment.bottomRight,
    overlayWidget: HorizontalHelpWidget(),
    child: MyApp(),
)

Customization

You can also create custom variations of this widget:

// we used that in our widget, but you do you 
final order = [HelpWidgetView.collapsed, HelpWidgetView.main, HelpWidgetView.options];

final _controller = TraverseController(order);

HelpWidget(
    controller: _controller;
    // view with links to resources that help Ukraine
    optionsView: ...
    // The default first view that the users see.
    mainView: ...
    // smallest view that doesn't obstruct user from
    // using the app, but still exists on the screen
    collapsedView: ...
    // axis of transition animation between views
    axis: ...
)

Credits

jiffsy.co and Gearheart for designing and creating the original widget.

help_ukraine_widget's People

Contributors

dazzlemon avatar f1fi avatar illia-romanenko avatar martynov-vlad-is-love avatar solid-danylokhvan avatar solid-danylosafonov avatar solid-oleksandrhordiienko avatar solid-yuriiprykhodko avatar trixeenya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mkobuolys

help_ukraine_widget's Issues

Code documentation

We need to make sure code documentation is full, helpful and readable.

Add README

We need to add a README, which would include:

  • The rationale behind the Widget
  • Some examples of how it should look
  • Usage instructions
    • Basic usage
    • Customization (UI layout, theming)
    • Localization (depends on #7)

HorizontalHelpWidget misalignments

firefox 104.0.1 (64-bit) @ mbp m1 13
renderer: html

main view: wrong text spacing leads to overflow
image

options view: looks about right
image

collapsed: perfect
image

Safari 15.6.1 @ mbp m1 13
renderer: html

collapsed: perfect
image

main: literally everything is mismatched (cross is normally in center but sometimes it is like on screenshot)
image

options: wrong spacing between column items, heart icon too small
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.