[0.1.0]
This commit is contained in:
@@ -1,63 +1,20 @@
|
||||
//s1 Imports
|
||||
//s2 Core Package Imports
|
||||
import 'dart:typed_data';
|
||||
//s2 Core Packages Imports
|
||||
import 'src/blur.widget.dart';
|
||||
import 'src/scaffold.widget.dart';
|
||||
import 'src/image.widget.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
//s2 1st-party Package Imports
|
||||
//s2 3rd-party Package Imports
|
||||
//s2 Dependancies Imports
|
||||
//s3 Routes
|
||||
//s3 Services
|
||||
//s3 Models & Widgets
|
||||
import 'src/blur.widget.dart';
|
||||
import 'src/image.widget.dart';
|
||||
//s1 Exports
|
||||
export 'src/blur.widget.dart' show BlurExtension;
|
||||
|
||||
class AstromicWidgets {
|
||||
//S1 -- SCAFFOLD
|
||||
static Widget scaffold({
|
||||
//S1 -- AppBar
|
||||
PreferredSizeWidget? appBar,
|
||||
bool isAppbarStacked = false,
|
||||
//S1 -- FAB
|
||||
Widget? floatingActionButton,
|
||||
FloatingActionButtonLocation? floatingActionButtonLocation,
|
||||
//S1 -- Other Integral Components
|
||||
Widget? drawer,
|
||||
Widget? bottomNavigationBar,
|
||||
Widget? bottomSheet,
|
||||
//S1 -- Styling
|
||||
Color? backgroundColor,
|
||||
EdgeInsetsGeometry? padding,
|
||||
ScrollPhysics? scrollPhysics = const BouncingScrollPhysics(),
|
||||
//S1 -- Configs
|
||||
bool withSafeArea = false,
|
||||
bool extendBody = false,
|
||||
bool resizeToAvoidBottomInset = true,
|
||||
bool withScrollView = false,
|
||||
bool closeKeyboardOnTap = true,
|
||||
//
|
||||
Widget? body,
|
||||
//
|
||||
}) =>
|
||||
astromicScaffold(
|
||||
//
|
||||
appBar: appBar,
|
||||
isAppbarStacked: isAppbarStacked,
|
||||
//
|
||||
floatingActionButton: floatingActionButton,
|
||||
floatingActionButtonLocation: floatingActionButtonLocation,
|
||||
//
|
||||
drawer: drawer,
|
||||
bottomNavigationBar: bottomNavigationBar,
|
||||
bottomSheet: bottomSheet,
|
||||
//
|
||||
backgroundColor: backgroundColor,
|
||||
padding: padding,
|
||||
scrollPhysics: scrollPhysics,
|
||||
//
|
||||
withSafeArea: withSafeArea,
|
||||
extendBody: extendBody,
|
||||
resizeToAvoidBottomInset: resizeToAvoidBottomInset,
|
||||
withScrollView: withScrollView,
|
||||
closeKeyboardOnTap: closeKeyboardOnTap,
|
||||
//
|
||||
body: body,
|
||||
);
|
||||
|
||||
//S1 -- IMAGE
|
||||
/// Customized Image widget for the Astromic system.
|
||||
static Widget image({
|
||||
String? assetPath,
|
||||
String? assetURL,
|
||||
@@ -121,25 +78,75 @@ class AstromicWidgets {
|
||||
errorWidget: errorWidget,
|
||||
);
|
||||
|
||||
//S1 -- BLUR
|
||||
static Widget blur(
|
||||
Widget child,
|
||||
double sigmaX,
|
||||
double sigmaY, {
|
||||
Widget? topChild,
|
||||
Color? overlayColor = const Color.fromRGBO(0, 0, 0, 0.1),
|
||||
TileMode? tileMode = TileMode.mirror,
|
||||
List<BoxShadow>? shadow,
|
||||
/// Customized Blur widget for the Astromic system.
|
||||
static Widget blur({
|
||||
required Widget child,
|
||||
(double x, double y)? sigma,
|
||||
TileMode? tileMode,
|
||||
Color? overlayColor,
|
||||
Gradient? overlayGradient,
|
||||
BorderRadius? radius,
|
||||
List<BoxShadow>? shadow,
|
||||
Widget? childOnTop,
|
||||
}) =>
|
||||
astromicBlurEffect(
|
||||
child,
|
||||
sigmaX,
|
||||
sigmaY,
|
||||
topChild: topChild,
|
||||
overlayColor: overlayColor,
|
||||
AstromicBlur(
|
||||
child: child,
|
||||
sigma: sigma,
|
||||
tileMode: tileMode,
|
||||
shadow: shadow,
|
||||
overlayColor: overlayColor,
|
||||
overlayGradient: overlayGradient,
|
||||
radius: radius,
|
||||
shadow: shadow,
|
||||
childOnTop: childOnTop,
|
||||
);
|
||||
|
||||
// static Widget scaffold({
|
||||
// //S1 -- AppBar
|
||||
// PreferredSizeWidget? appBar,
|
||||
// bool isAppbarStacked = false,
|
||||
// //S1 -- FAB
|
||||
// Widget? floatingActionButton,
|
||||
// FloatingActionButtonLocation? floatingActionButtonLocation,
|
||||
// //S1 -- Other Integral Components
|
||||
// Widget? drawer,
|
||||
// Widget? bottomNavigationBar,
|
||||
// Widget? bottomSheet,
|
||||
// //S1 -- Styling
|
||||
// Color? backgroundColor,
|
||||
// EdgeInsetsGeometry? padding,
|
||||
// ScrollPhysics? scrollPhysics = const BouncingScrollPhysics(),
|
||||
// //S1 -- Configs
|
||||
// bool withSafeArea = false,
|
||||
// bool extendBody = false,
|
||||
// bool resizeToAvoidBottomInset = true,
|
||||
// bool withScrollView = false,
|
||||
// bool closeKeyboardOnTap = true,
|
||||
// //
|
||||
// Widget? body,
|
||||
// //
|
||||
// }) =>
|
||||
// astromicScaffold(
|
||||
// //
|
||||
// appBar: appBar,
|
||||
// isAppbarStacked: isAppbarStacked,
|
||||
// //
|
||||
// floatingActionButton: floatingActionButton,
|
||||
// floatingActionButtonLocation: floatingActionButtonLocation,
|
||||
// //
|
||||
// drawer: drawer,
|
||||
// bottomNavigationBar: bottomNavigationBar,
|
||||
// bottomSheet: bottomSheet,
|
||||
// //
|
||||
// backgroundColor: backgroundColor,
|
||||
// padding: padding,
|
||||
// scrollPhysics: scrollPhysics,
|
||||
// //
|
||||
// withSafeArea: withSafeArea,
|
||||
// extendBody: extendBody,
|
||||
// resizeToAvoidBottomInset: resizeToAvoidBottomInset,
|
||||
// withScrollView: withScrollView,
|
||||
// closeKeyboardOnTap: closeKeyboardOnTap,
|
||||
// //
|
||||
// body: body,
|
||||
// );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user