update file structure

null_safety
小赖 4 years ago
parent 730d866283
commit e93ee99ee3

@ -1,5 +1,4 @@
import 'package:ansu_ui/ansu_ui.dart';
import 'package:ansu_ui/buttons/as_bottom_button.dart';
import 'package:flutter/material.dart';
class ExampleBottomButton extends StatefulWidget {

@ -1,5 +1,4 @@
import 'package:ansu_ui/ansu_ui.dart';
import 'package:ansu_ui/buttons/as_gradientbutton.dart';
import 'package:flutter/material.dart';
class ExampleButton extends StatefulWidget {

@ -1,5 +1,4 @@
import 'package:ansu_ui/scaffold/as_scaffold.dart';
import 'package:ansu_ui/tag/as_tag.dart';
import 'package:ansu_ui/ansu_ui.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

@ -1,5 +1,4 @@
import 'package:ansu_ui/ansu_ui.dart';
import 'package:ansu_ui/bar/as_navigation_bar.dart';
import 'package:example/main_extention.dart';
import 'package:example/main_home.dart';
import 'package:flutter/material.dart';

@ -1,56 +1,66 @@
library ansu_ui;
import 'package:ansu_ui/bar/as_tab_indicator.dart';
import 'package:ansu_ui/painters/as_numeric_painter.dart';
import 'package:ansu_ui/utils/city_util.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
export 'package:flutter_screenutil/flutter_screenutil.dart';
export 'package:flutter_easyrefresh/easy_refresh.dart';
//buttons
export 'buttons/as_button.dart';
export 'buttons/as_longbutton.dart';
export 'buttons/as_back_button.dart';
export 'buttons/as_numeric_button.dart';
export 'buttons/as_bottom_button.dart';
export 'buttons/as_gradientbutton.dart';
export 'buttons/as_radio_button.dart';
part 'buttons/as_button.dart';
part 'buttons/as_longbutton.dart';
part 'buttons/as_back_button.dart';
part 'buttons/as_numeric_button.dart';
part 'buttons/as_bottom_button.dart';
part 'buttons/as_gradientbutton.dart';
part 'buttons/as_radio_button.dart';
//scaffold
export 'scaffold/as_scaffold.dart';
part 'scaffold/as_scaffold.dart';
export 'styles/as_colors.dart';
part 'styles/as_colors.dart';
export 'bar/as_tabbar.dart';
export 'bar/as_navigation_bar.dart';
export 'bar/as_navigation_item.dart';
part 'bar/as_tabbar.dart';
part 'bar/as_navigation_bar.dart';
part 'bar/as_navigation_item.dart';
export 'drawer/as_drawer.dart';
part 'drawer/as_drawer.dart';
export 'pickers/as_date_picker.dart';
export 'pickers/as_picker_box.dart';
export 'pickers/as_city_picker.dart';
export 'pickers/as_show_city_picker.dart';
part 'pickers/as_date_picker.dart';
part 'pickers/as_picker_box.dart';
part 'pickers/as_city_picker.dart';
part 'pickers/as_show_city_picker.dart';
export 'dialog/as_dialog.dart';
export 'dialog/as_dialog_button.dart';
export 'dialog/as_delete_dialog.dart';
part 'dialog/as_dialog.dart';
part 'dialog/as_dialog_button.dart';
part 'dialog/as_delete_dialog.dart';
export 'list_tile/as_list_tile.dart';
export 'list_tile/as_option_tile.dart';
export 'list_tile/as_edit_tile.dart';
export 'list_tile/as_option_tile_item.dart';
export 'list_tile/as_vertical_tile_item.dart';
part 'list_tile/as_list_tile.dart';
part 'list_tile/as_option_tile.dart';
part 'list_tile/as_edit_tile.dart';
part 'list_tile/as_option_tile_item.dart';
part 'list_tile/as_vertical_tile_item.dart';
export 'refresh/as_refresh.dart';
part 'refresh/as_refresh.dart';
export 'box/as_check_box.dart';
part 'box/as_check_box.dart';
export 'tag/as_tag.dart';
export 'divider/as_divider.dart';
export 'text_field/as_search_text_field.dart';
part 'tag/as_tag.dart';
part 'divider/as_divider.dart';
part 'text_field/as_search_text_field.dart';
export 'utils/screen_adapter.dart';
part 'utils/screen_adapter.dart';
part 'extension/num_extension.dart';
part 'extension/widget_extension.dart';
part 'extension/string_extension.dart';
part 'extension/text_style_extension.dart';
part 'extension/text_extension.dart';
export 'extension/num_extension.dart';
export 'extension/widget_extension.dart';
export 'extension/string_extension.dart';
export 'extension/text_style_extension.dart';
export 'extension/text_extension.dart';
//`BOTTOM` is external lib
export 'package:flutter_screenutil/flutter_screenutil.dart';
export 'package:flutter_easyrefresh/easy_refresh.dart';

@ -1,6 +1,4 @@
import 'package:ansu_ui/styles/as_colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
part of ansu_ui;
class ASNavigationBar extends StatefulWidget {
final List<BottomNavigationBarItem> items;

@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
part of ansu_ui;
BottomNavigationBarItem asNavigationItem(
String path1, String path2, String title) {

@ -1,6 +1,4 @@
import 'package:ansu_ui/styles/as_colors.dart';
import 'package:ansu_ui/bar/as_tab_indicator.dart';
import 'package:flutter/material.dart';
part of ansu_ui;
/// ## Tabbar
///

@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
part of ansu_ui;
class ASCheckBox extends StatefulWidget {
final bool value;

@ -1,6 +1,4 @@
import 'package:ansu_ui/ansu_ui.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
part of ansu_ui;
///
///

@ -1,6 +1,4 @@
import 'package:ansu_ui/styles/as_colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
part of ansu_ui;
class ASBottomButton extends StatefulWidget {
///

@ -1,7 +1,4 @@
import 'package:ansu_ui/styles/as_colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
part of ansu_ui;
///
class ASButton extends StatefulWidget {
///

@ -1,6 +1,4 @@
import 'package:ansu_ui/styles/as_colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
part of ansu_ui;
class ASGradientButton extends StatefulWidget {
///

@ -1,6 +1,4 @@
import 'package:ansu_ui/styles/as_colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
part of ansu_ui;
class ASLongButton extends StatefulWidget {
///

@ -1,7 +1,4 @@
import 'package:ansu_ui/ansu_ui.dart';
import 'package:ansu_ui/painters/as_numeric_painter.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
part of ansu_ui;
///##
class ASNumericButton extends StatefulWidget {

@ -1,7 +1,4 @@
import 'package:ansu_ui/styles/as_colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:ansu_ui/extension/num_extension.dart';
part of ansu_ui;
class ASRadioButton<T> extends StatefulWidget {
///

@ -1,8 +1,4 @@
import 'package:ansu_ui/styles/as_colors.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:ansu_ui/ansu_ui.dart';
part of ansu_ui;
class ASDeleteDialog extends StatelessWidget {
///

@ -1,8 +1,4 @@
import 'package:ansu_ui/styles/as_colors.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:ansu_ui/extension/num_extension.dart';
part of ansu_ui;
class ASDialog extends StatefulWidget {
final bool close;

@ -1,6 +1,4 @@
import 'package:ansu_ui/buttons/as_longbutton.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
part of ansu_ui;
class ASDialogButton extends StatelessWidget {
final String title;

@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
part of ansu_ui;
///线
class ASDivider extends StatelessWidget {

@ -1,6 +1,4 @@
import 'package:ansu_ui/utils/screen_adapter.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
part of ansu_ui;
///
class ASDrawer extends StatefulWidget {

@ -1,6 +1,4 @@
import 'package:ansu_ui/ansu_ui.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
part of ansu_ui;
extension NumExt on num {
/// SizedBox

@ -1,4 +1,4 @@
import 'package:flutter/material.dart';
part of ansu_ui;
extension PhoneExt on String {
List get _parsePhone {

@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'text_style_extension.dart';
part of ansu_ui;
extension TextExtension on Text {
Text get bold => Text(

@ -1,6 +1,4 @@
import 'package:ansu_ui/styles/as_colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
part of ansu_ui;
extension TextStyleExtension on TextStyle {
///Bold text

@ -1,5 +1,4 @@
import 'package:ansu_ui/ansu_ui.dart';
import 'package:flutter/material.dart';
part of ansu_ui;
extension SeparateExt on List {
List<Widget> sepWidget({Widget separate}) {

@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'package:ansu_ui/ansu_ui.dart';
part of ansu_ui;
class ASEditTile extends StatefulWidget {
final Widget title;

@ -1,6 +1,4 @@
import 'package:ansu_ui/styles/as_colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
part of ansu_ui;
class ASListTile extends StatefulWidget {
///

@ -1,7 +1,4 @@
import 'package:ansu_ui/ansu_ui.dart';
import 'package:ansu_ui/styles/as_colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
part of ansu_ui;
///Tile
class ASOptionTile extends StatelessWidget {

@ -1,7 +1,4 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:ansu_ui/extension/num_extension.dart';
part of ansu_ui;
class ASOptionTileItem extends StatelessWidget {
final Widget leading;

@ -1,6 +1,4 @@
import 'package:ansu_ui/ansu_ui.dart';
import 'package:ansu_ui/styles/as_colors.dart';
import 'package:flutter/material.dart';
part of ansu_ui;
class ASVerticalTileItem extends StatelessWidget {
///

@ -1,7 +1,4 @@
import 'package:ansu_ui/ansu_ui.dart';
import 'package:ansu_ui/utils/city_util.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
part of ansu_ui;
class ASCityPicker extends StatefulWidget {
ASCityPicker({Key key}) : super(key: key);

@ -1,7 +1,4 @@
import 'package:ansu_ui/pickers/as_picker_box.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
part of ansu_ui;
//
class _ASDatePickerWidget extends StatefulWidget {

@ -0,0 +1,15 @@
import 'package:flutter/material.dart';
class ASDateRangePicker extends StatefulWidget {
ASDateRangePicker({Key key}) : super(key: key);
@override
_ASDateRangePickerState createState() => _ASDateRangePickerState();
}
class _ASDateRangePickerState extends State<ASDateRangePicker> {
@override
Widget build(BuildContext context) {
return SizedBox();
}
}

@ -1,7 +1,4 @@
import 'package:ansu_ui/divider/as_divider.dart';
import 'package:ansu_ui/styles/as_colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
part of ansu_ui;
class ASPickerBox extends StatelessWidget {
final VoidCallback onPressed;

@ -1,6 +1,4 @@
import 'package:ansu_ui/ansu_ui.dart';
import 'package:ansu_ui/utils/city_util.dart';
import 'package:flutter/material.dart';
part of ansu_ui;
Future<CityModel> showCityPicker(BuildContext context,
{String initCode}) async {

@ -1,6 +1,4 @@
import 'package:ansu_ui/styles/as_colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
part of ansu_ui;
class ASRefresh extends StatefulWidget {
final Widget child;

@ -1,7 +1,4 @@
import 'package:ansu_ui/buttons/as_back_button.dart';
import 'package:ansu_ui/styles/as_colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
part of ansu_ui;
///ASScaffold
///

@ -1,4 +1,4 @@
import 'package:flutter/material.dart';
part of ansu_ui;
///
const Color kDarkColor = Color(0xFF333333);

@ -1,6 +1,4 @@
import 'package:ansu_ui/styles/as_colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
part of ansu_ui;
class ASTag extends StatefulWidget {
///

@ -1,6 +1,4 @@
import 'package:ansu_ui/styles/as_colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
part of ansu_ui;
///TextFiled
class ASSearchTextField extends StatefulWidget implements PreferredSizeWidget {

@ -1,4 +1,4 @@
import 'package:ansu_ui/ansu_ui.dart';
part of ansu_ui;
double statusBarHeight = ScreenUtil().statusBarHeight;
double screenHeight = ScreenUtil().screenHeight;

Loading…
Cancel
Save