final
This commit is contained in:
@@ -6,14 +6,14 @@ import 'package:responsive_builder/responsive_builder.dart';
|
||||
|
||||
class IndexMainContent2 extends StatelessWidget {
|
||||
final Map<String, dynamic> content;
|
||||
const IndexMainContent2(this.content, {Key key}) : super(key: key);
|
||||
const IndexMainContent2(this.content, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ScreenTypeLayout(
|
||||
mobile: MobileIndexMainContent2(content),
|
||||
tablet: DesktopIndexMainContent2(content),
|
||||
desktop: DesktopIndexMainContent2(content),
|
||||
return ScreenTypeLayout.builder(
|
||||
mobile: (context) => MobileIndexMainContent2(content),
|
||||
tablet: (context) => DesktopIndexMainContent2(content),
|
||||
desktop: (context) => DesktopIndexMainContent2(content),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user