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/ansu_ui.dart';
import 'package:ansu_ui/buttons/as_bottom_button.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class ExampleBottomButton extends StatefulWidget { class ExampleBottomButton extends StatefulWidget {

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

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

@ -1,5 +1,4 @@
import 'package:ansu_ui/ansu_ui.dart'; 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_extention.dart';
import 'package:example/main_home.dart'; import 'package:example/main_home.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';

@ -1,56 +1,66 @@
library ansu_ui; 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 //buttons
export 'buttons/as_button.dart'; part 'buttons/as_button.dart';
export 'buttons/as_longbutton.dart'; part 'buttons/as_longbutton.dart';
export 'buttons/as_back_button.dart'; part 'buttons/as_back_button.dart';
export 'buttons/as_numeric_button.dart'; part 'buttons/as_numeric_button.dart';
export 'buttons/as_bottom_button.dart'; part 'buttons/as_bottom_button.dart';
export 'buttons/as_gradientbutton.dart'; part 'buttons/as_gradientbutton.dart';
export 'buttons/as_radio_button.dart'; part 'buttons/as_radio_button.dart';
//scaffold //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'; part 'bar/as_tabbar.dart';
export 'bar/as_navigation_bar.dart'; part 'bar/as_navigation_bar.dart';
export 'bar/as_navigation_item.dart'; part 'bar/as_navigation_item.dart';
export 'drawer/as_drawer.dart'; part 'drawer/as_drawer.dart';
export 'pickers/as_date_picker.dart'; part 'pickers/as_date_picker.dart';
export 'pickers/as_picker_box.dart'; part 'pickers/as_picker_box.dart';
export 'pickers/as_city_picker.dart'; part 'pickers/as_city_picker.dart';
export 'pickers/as_show_city_picker.dart'; part 'pickers/as_show_city_picker.dart';
export 'dialog/as_dialog.dart'; part 'dialog/as_dialog.dart';
export 'dialog/as_dialog_button.dart'; part 'dialog/as_dialog_button.dart';
export 'dialog/as_delete_dialog.dart'; part 'dialog/as_delete_dialog.dart';
export 'list_tile/as_list_tile.dart'; part 'list_tile/as_list_tile.dart';
export 'list_tile/as_option_tile.dart'; part 'list_tile/as_option_tile.dart';
export 'list_tile/as_edit_tile.dart'; part 'list_tile/as_edit_tile.dart';
export 'list_tile/as_option_tile_item.dart'; part 'list_tile/as_option_tile_item.dart';
export 'list_tile/as_vertical_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'; part 'tag/as_tag.dart';
export 'divider/as_divider.dart'; part 'divider/as_divider.dart';
export 'text_field/as_search_text_field.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'; part of ansu_ui;
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class ASNavigationBar extends StatefulWidget { class ASNavigationBar extends StatefulWidget {
final List<BottomNavigationBarItem> items; final List<BottomNavigationBarItem> items;

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

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

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

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

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

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

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

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

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

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

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

@ -1,8 +1,4 @@
import 'package:ansu_ui/styles/as_colors.dart'; part of ansu_ui;
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';
class ASDialog extends StatefulWidget { class ASDialog extends StatefulWidget {
final bool close; final bool close;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -1,7 +1,4 @@
import 'package:ansu_ui/pickers/as_picker_box.dart'; part of ansu_ui;
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
// //
class _ASDatePickerWidget extends StatefulWidget { 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'; part of ansu_ui;
import 'package:ansu_ui/styles/as_colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class ASPickerBox extends StatelessWidget { class ASPickerBox extends StatelessWidget {
final VoidCallback onPressed; final VoidCallback onPressed;

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

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

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

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

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

@ -1,6 +1,4 @@
import 'package:ansu_ui/styles/as_colors.dart'; part of ansu_ui;
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
///TextFiled ///TextFiled
class ASSearchTextField extends StatefulWidget implements PreferredSizeWidget { 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 statusBarHeight = ScreenUtil().statusBarHeight;
double screenHeight = ScreenUtil().screenHeight; double screenHeight = ScreenUtil().screenHeight;

Loading…
Cancel
Save