Unit 4 Appdev
Unit 4 Appdev
Cross-Platform App
➤ Definition:
Language
Framework Description
Used
React JavaScript +
Developed by Facebook. Provides near-native performance.
Native JSX
Xamarin C# (via .NET) Developed by Microsoft. Integrates well with Visual Studio.
3. Deploy Everywhere: The same app is deployed to iOS, Android, Windows, etc.
4️⃣ Faster Development Shared codebase allows quicker iterations, bug fixes, and updates.
2⃣ Platform Support
• Evaluate how much code can be shared across platforms vs. how much is platform-
specific.
• Cross-platform can reduce costs, but watch out for licensing fees and development
time.
15️⃣ Scalability
cd simple_app
Step 4: Edit the Main Dart File
lib/main.dart
Dart
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
@override
return MaterialApp(
home: Scaffold(
appBar: AppBar(
),
body: Center(
),
),
);
}
}
flutter run
5️. You will see a simple app with an AppBar and centered text:
Hello, Flutter!
1. Install Visual Studio (for Windows) or Visual Studio for Mac (macOS) — if not installed
already.
2. Click on:
Create a new project.
3. Search for:
Mobile App (Xamarin.Forms) in the project templates.
5️. Enter your project name → choose a location to save → click Create.
Step 3️: Select Project Options
3. Click Create.
<ContentPage xmlns="http://xamarin.com/schemas/2014️/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="SimpleApp.MainPage">
<StackLayout>
HorizontalOptions="CenterAndExpand"
VerticalOptions="CenterAndExpand" />
</StackLayout>
</ContentPage>
namespace SimpleApp
public MainPage()
InitializeComponent();