You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
HMG_Patient_App/lib/pages/conference/widgets/platform_widget.dart

18 lines
397 B
Dart

import 'dart:io';
import 'package:flutter/material.dart';
abstract class PlatformWidget extends StatelessWidget {
Widget buildCupertinoWidget(BuildContext context);
Widget buildMaterialWidget(BuildContext context);
@override
Widget build(BuildContext context) {
if (Platform.isIOS) {
return buildCupertinoWidget(context);
}
return buildMaterialWidget(context);
}
}