short_video 0.0.1
short_video: ^0.0.1 copied to clipboard

Video palyer which can be reused by reset datasource

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add short_video

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):


dependencies:
  short_video: ^0.0.1

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:short_video/base/device_info.dart';
import 'package:short_video/base/i_log.dart';
import 'package:short_video/base/i_net_http.dart';
import 'package:short_video/base/i_store_db.dart';
import 'package:short_video/base/i_store_sp.dart';
import 'package:short_video/base/pair.dart';
import 'package:short_video/bean/heart_info.dart';
import 'package:short_video/bean/rsp_video_list.dart';
import 'package:short_video/bean/support_bean.dart';
import 'package:short_video/bean/video_item.dart';
import 'package:short_video/build_config.dart';
import 'package:short_video/debug/debug_s_common_action.dart';
import 'package:short_video/debug/debug_s_network.dart';
import 'package:short_video/debug/debug_s_proxy.dart';
import 'package:short_video/debug/debug_screen.dart';
import 'package:short_video/generated/i18n.dart';
import 'package:short_video/locale/localization.dart';
import 'package:short_video/locale/messages_all.dart';
import 'package:short_video/locale/messages_zh.dart';
import 'package:short_video/main.dart';
import 'package:short_video/main_screen.dart';
import 'package:short_video/model_item.dart';
import 'package:short_video/model_main.dart';
import 'package:short_video/network/i_json_codec.dart';
import 'package:short_video/network/i_req_base.dart';
import 'package:short_video/network/i_rsp_base.dart';
import 'package:short_video/network/net_const.dart';
import 'package:short_video/network/root_url.dart';
import 'package:short_video/network/sg_http_client.dart';
import 'package:short_video/network/sg_request.dart';
import 'package:short_video/platform/plf_device.dart';
import 'package:short_video/platform/sg_operation.dart';
import 'package:short_video/platform/sg_player.dart';
import 'package:short_video/player_pool.dart';
import 'package:short_video/sg_log.dart';
import 'package:short_video/storage/imp_base_store_sp.dart';
import 'package:short_video/test_screen.dart';
import 'package:short_video/util/constant.dart';
import 'package:short_video/util/crash_handler.dart';
import 'package:short_video/util/demo_util.dart';
import 'package:short_video/util/statistics_helper.dart';
import 'package:short_video/util/toast.dart';
import 'package:short_video/util/ui_tools.dart';
import 'package:short_video/util/validator.dart';
import 'package:short_video/widget/ad_text_widget.dart';
import 'package:short_video/widget/comment_count_widget.dart';
import 'package:short_video/widget/common/base_navi_screen.dart';
import 'package:short_video/widget/common/common_expansion_item.dart';
import 'package:short_video/widget/common/fadein_widget_switcher.dart';
import 'package:short_video/widget/common/positioned_tap_detector.dart';
import 'package:short_video/widget/common/sg_page_view.dart';
import 'package:short_video/widget/error_widget.dart';
import 'package:short_video/widget/givelike_anim_screen.dart';
import 'package:short_video/widget/image_button_widget.dart';
import 'package:short_video/widget/navi_bar_widget.dart';
import 'package:short_video/widget/page_control_widget.dart';
import 'package:short_video/widget/page_item_screen.dart';
import 'package:short_video/widget/popup_menu_widget.dart';
import 'package:short_video/widget/pure_text_widget.dart';
import 'package:short_video/widget/share_button_widget.dart';
import 'package:short_video/widget/touch_event_screen.dart';
import 'package:short_video/widget/user_guid_widget.dart';
import 'package:short_video/widget/write_comment_widget.dart';