final
This commit is contained in:
@@ -5,18 +5,17 @@ import '../widgets/mobile/mobile_search_place.dart';
|
||||
import 'package:responsive_builder/responsive_builder.dart';
|
||||
|
||||
class SearchPlace extends StatelessWidget {
|
||||
final Key key;
|
||||
final int businessId;
|
||||
const SearchPlace(this.businessId, {this.key}) : super(key: key);
|
||||
const SearchPlace(this.businessId, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ResponsiveBuilder(
|
||||
builder: (context, sizingInformation) =>
|
||||
ScreenTypeLayout(
|
||||
mobile: MobileSearchPlace(businessId),
|
||||
tablet: DesktopSearchPlace(businessId),
|
||||
desktop: DesktopSearchPlace(businessId),
|
||||
ScreenTypeLayout.builder(
|
||||
mobile: (context) => MobileSearchPlace(businessId),
|
||||
tablet: (context) => DesktopSearchPlace(businessId),
|
||||
desktop: (context) => DesktopSearchPlace(businessId),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user