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