This commit is contained in:
2026-07-12 04:33:48 +08:00
parent f8a90ad305
commit e7ce0f7bae
151 changed files with 2765 additions and 2947 deletions

View File

@@ -7,25 +7,24 @@ import '../widgets/desktop/desktop_new_address.dart';
import '../widgets/mobile/mobile_new_address.dart';
class NewAddress extends StatelessWidget {
final Key key;
final LocatedAddress locatedAddress;
final int businessId;
const NewAddress({this.key, this.locatedAddress, this.businessId}) : super(key: key);
final LocatedAddress? locatedAddress;
final int? businessId;
const NewAddress({Key? key, this.locatedAddress, this.businessId}) : super(key: key);
@override
Widget build(BuildContext context) {
return ResponsiveBuilder(
builder: (context, sizingInformation) =>
ScreenTypeLayout(
mobile: MobileNewAddress(
ScreenTypeLayout.builder(
mobile: (context) => MobileNewAddress(
locatedAddress: locatedAddress,
businessId: businessId,
),
tablet: DesktopNewAddress(
tablet: (context) => DesktopNewAddress(
locatedAddress: locatedAddress,
businessId: businessId,
),
desktop: DesktopNewAddress(
desktop: (context) => DesktopNewAddress(
locatedAddress: locatedAddress,
businessId: businessId,
),