├── .fvm ├── fvm_config.json └── flutter_sdk ├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj └── .gitignore ├── docs ├── favicon.png ├── icons │ ├── Icon-192.png │ └── Icon-512.png ├── assets │ ├── assets │ │ └── images │ │ │ ├── about.png │ │ │ ├── hack20.png │ │ │ ├── maps.png │ │ │ ├── tree.png │ │ │ ├── browser.png │ │ │ ├── notepad.png │ │ │ ├── windows.png │ │ │ ├── application.png │ │ │ ├── calculator.png │ │ │ └── hack20_logo.png │ ├── fonts │ │ └── MaterialIcons-Regular.ttf │ ├── packages │ │ ├── flutter_markdown │ │ │ └── assets │ │ │ │ └── logo.png │ │ └── cupertino_icons │ │ │ └── assets │ │ │ └── CupertinoIcons.ttf │ ├── FontManifest.json │ └── AssetManifest.json ├── manifest.json ├── index.html └── flutter_service_worker.js ├── web ├── favicon.png ├── icons │ ├── Icon-192.png │ └── Icon-512.png ├── manifest.json └── index.html ├── screenshots ├── 1.png ├── 2.png └── inception.png ├── .vscode └── settings.json ├── assets └── images │ ├── about.png │ ├── maps.png │ ├── tree.png │ ├── browser.png │ ├── hack20.png │ ├── notepad.png │ ├── windows.png │ ├── calculator.png │ ├── application.png │ └── hack20_logo.png ├── android ├── gradle.properties ├── .gitignore ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ └── values │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── retro95 │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── settings.gradle └── build.gradle ├── .metadata ├── lib ├── models │ ├── application.dart │ └── application.freezed.dart ├── main.dart ├── apps │ ├── bluescreen │ │ ├── dummy.dart │ │ └── blue_screen.dart │ ├── maps │ │ └── maps.dart │ ├── notepad │ │ ├── textfield95.dart │ │ └── notepad.dart │ ├── counter │ │ └── counter.dart │ ├── browser │ │ └── browser.dart │ ├── about │ │ └── about.dart │ ├── flutter95 │ │ └── flutter95.dart │ ├── root.dart │ └── calculator │ │ └── calculator.dart ├── widgets │ ├── restart_widget.dart │ ├── toolbar_item.dart │ ├── custom_scaffold95.dart │ ├── toolbar.dart │ └── window.dart └── constants │ └── constants.dart ├── pubspec.yaml ├── .gitignore ├── LICENSE.md ├── test └── widget_test.dart ├── README.md └── pubspec.lock /.fvm/fvm_config.json: -------------------------------------------------------------------------------- 1 | {"flutterSdkVersion":"beta"} -------------------------------------------------------------------------------- /.fvm/flutter_sdk: -------------------------------------------------------------------------------- 1 | /home/justinenerio/fvm/versions/beta -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /docs/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/docs/favicon.png -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/web/favicon.png -------------------------------------------------------------------------------- /screenshots/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/screenshots/1.png -------------------------------------------------------------------------------- /screenshots/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/screenshots/2.png -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "dart.flutterSdkPath": "/home/justinenerio/fvm/versions/beta" 3 | } -------------------------------------------------------------------------------- /assets/images/about.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/assets/images/about.png -------------------------------------------------------------------------------- /assets/images/maps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/assets/images/maps.png -------------------------------------------------------------------------------- /assets/images/tree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/assets/images/tree.png -------------------------------------------------------------------------------- /docs/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/docs/icons/Icon-192.png -------------------------------------------------------------------------------- /docs/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/docs/icons/Icon-512.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/web/icons/Icon-512.png -------------------------------------------------------------------------------- /assets/images/browser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/assets/images/browser.png -------------------------------------------------------------------------------- /assets/images/hack20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/assets/images/hack20.png -------------------------------------------------------------------------------- /assets/images/notepad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/assets/images/notepad.png -------------------------------------------------------------------------------- /assets/images/windows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/assets/images/windows.png -------------------------------------------------------------------------------- /screenshots/inception.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/screenshots/inception.png -------------------------------------------------------------------------------- /assets/images/calculator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/assets/images/calculator.png -------------------------------------------------------------------------------- /assets/images/application.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/assets/images/application.png -------------------------------------------------------------------------------- /assets/images/hack20_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/assets/images/hack20_logo.png -------------------------------------------------------------------------------- /docs/assets/assets/images/about.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/docs/assets/assets/images/about.png -------------------------------------------------------------------------------- /docs/assets/assets/images/hack20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/docs/assets/assets/images/hack20.png -------------------------------------------------------------------------------- /docs/assets/assets/images/maps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/docs/assets/assets/images/maps.png -------------------------------------------------------------------------------- /docs/assets/assets/images/tree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/docs/assets/assets/images/tree.png -------------------------------------------------------------------------------- /docs/assets/assets/images/browser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/docs/assets/assets/images/browser.png -------------------------------------------------------------------------------- /docs/assets/assets/images/notepad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/docs/assets/assets/images/notepad.png -------------------------------------------------------------------------------- /docs/assets/assets/images/windows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/docs/assets/assets/images/windows.png -------------------------------------------------------------------------------- /docs/assets/assets/images/application.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/docs/assets/assets/images/application.png -------------------------------------------------------------------------------- /docs/assets/assets/images/calculator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/docs/assets/assets/images/calculator.png -------------------------------------------------------------------------------- /docs/assets/assets/images/hack20_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/docs/assets/assets/images/hack20_logo.png -------------------------------------------------------------------------------- /docs/assets/fonts/MaterialIcons-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/docs/assets/fonts/MaterialIcons-Regular.ttf -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /docs/assets/packages/flutter_markdown/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/docs/assets/packages/flutter_markdown/assets/logo.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /docs/assets/packages/cupertino_icons/assets/CupertinoIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/docs/assets/packages/cupertino_icons/assets/CupertinoIcons.ttf -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/justinenerio/retro95/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/retro95/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.retro95 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /docs/assets/FontManifest.json: -------------------------------------------------------------------------------- 1 | [{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.ttf"}]},{"family":"packages/cupertino_icons/CupertinoIcons","fonts":[{"asset":"packages/cupertino_icons/assets/CupertinoIcons.ttf"}]}] -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 1ad9baa8b99a2897c20f9e6e54d3b9b359ade314 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /lib/models/application.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/foundation.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:freezed_annotation/freezed_annotation.dart'; 4 | 5 | part 'application.freezed.dart'; 6 | 7 | @freezed 8 | abstract class Application with _$Application { 9 | factory Application({ 10 | int processId, 11 | String processName, 12 | String label, 13 | String image, 14 | bool selected, 15 | bool maximized, 16 | bool minimized, 17 | }) = _Application; 18 | } 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:retro95/apps/root.dart'; 3 | import 'package:retro95/widgets/restart_widget.dart'; 4 | 5 | void main() { 6 | runApp( 7 | RestartWidget( 8 | child: App(), 9 | ), 10 | ); 11 | } 12 | 13 | class App extends StatelessWidget { 14 | @override 15 | Widget build(BuildContext context) { 16 | return MaterialApp( 17 | title: 'Retro 95', 18 | theme: ThemeData( 19 | primarySwatch: Colors.blue, 20 | visualDensity: VisualDensity.adaptivePlatformDensity, 21 | ), 22 | home: Root(), 23 | ); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /docs/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Retro 95", 3 | "short_name": "retro95", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "Retro 95 - Windows 95 Desktop Experience", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Retro 95", 3 | "short_name": "retro95", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "Retro 95 - Windows 95 Desktop Experience", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Flutter Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | include ':app' 6 | 7 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 8 | def properties = new Properties() 9 | 10 | assert localPropertiesFile.exists() 11 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 12 | 13 | def flutterSdkPath = properties.getProperty("flutter.sdk") 14 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 15 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 16 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: retro95 2 | description: A new Flutter project. 3 | 4 | publish_to: 'none' 5 | 6 | version: 1.0.0+1 7 | 8 | environment: 9 | sdk: ">=2.7.0 <3.0.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | 15 | cupertino_icons: ^0.1.3 16 | 17 | flutter95: ^0.0.7 18 | 19 | reorderables: ^0.3.2 20 | 21 | intl: ^0.16.1 22 | 23 | freezed_annotation: 24 | 25 | custom_navigator: ^0.1.1 26 | 27 | easy_web_view: 1.2.0 28 | 29 | easy_google_maps: 1.0.0+2 30 | 31 | url_launcher: ^5.4.11 32 | 33 | dev_dependencies: 34 | flutter_test: 35 | sdk: flutter 36 | 37 | build_runner: 38 | 39 | freezed: 40 | 41 | flutter: 42 | 43 | uses-material-design: true 44 | 45 | assets: 46 | - assets/images/ 47 | 48 | -------------------------------------------------------------------------------- /docs/assets/AssetManifest.json: -------------------------------------------------------------------------------- 1 | {"packages/cupertino_icons/assets/CupertinoIcons.ttf":["packages/cupertino_icons/assets/CupertinoIcons.ttf"],"assets/images/about.png":["assets/images/about.png"],"assets/images/application.png":["assets/images/application.png"],"assets/images/browser.png":["assets/images/browser.png"],"assets/images/calculator.png":["assets/images/calculator.png"],"assets/images/hack20.png":["assets/images/hack20.png"],"assets/images/hack20_logo.png":["assets/images/hack20_logo.png"],"packages/flutter_markdown/assets/logo.png":["packages/flutter_markdown/assets/logo.png"],"assets/images/maps.png":["assets/images/maps.png"],"assets/images/notepad.png":["assets/images/notepad.png"],"assets/images/tree.png":["assets/images/tree.png"],"assets/images/windows.png":["assets/images/windows.png"]} -------------------------------------------------------------------------------- /lib/apps/bluescreen/dummy.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:retro95/apps/bluescreen/blue_screen.dart'; 3 | 4 | class DummyPage extends StatelessWidget { 5 | @override 6 | Widget build(BuildContext context) { 7 | WidgetsBinding.instance.addPostFrameCallback((_) => { 8 | Navigator.of(context, rootNavigator: true).pushReplacement( 9 | MaterialPageRoute(builder: (context) => BlueScreen()), 10 | ) 11 | }); 12 | return Container( 13 | child: Center( 14 | child: Text( 15 | 'FLUTTER<3', 16 | style: TextStyle( 17 | color: Colors.red, 18 | fontWeight: FontWeight.bold, 19 | fontSize: 32, 20 | ), 21 | ), 22 | ), 23 | ); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /lib/widgets/restart_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | // https://stackoverflow.com/questions/50115311/flutter-how-to-force-an-application-restart-in-production-mode#answer-50116077 4 | class RestartWidget extends StatefulWidget { 5 | RestartWidget({this.child}); 6 | 7 | final Widget child; 8 | 9 | static void restartApp(BuildContext context) { 10 | context.findAncestorStateOfType<_RestartWidgetState>().restartApp(); 11 | } 12 | 13 | @override 14 | _RestartWidgetState createState() => _RestartWidgetState(); 15 | } 16 | 17 | class _RestartWidgetState extends State { 18 | Key key = UniqueKey(); 19 | 20 | void restartApp() { 21 | setState(() { 22 | key = UniqueKey(); 23 | }); 24 | } 25 | 26 | @override 27 | Widget build(BuildContext context) { 28 | return KeyedSubtree( 29 | key: key, 30 | child: widget.child, 31 | ); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | .vscode/ 22 | .fvm/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Exceptions to above rules. 44 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 45 | lib/constants/api_key.dart 46 | 47 | -------------------------------------------------------------------------------- /lib/apps/maps/maps.dart: -------------------------------------------------------------------------------- 1 | import 'package:easy_google_maps/easy_google_maps.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:retro95/constants/api_key.dart'; 4 | 5 | class Maps extends StatefulWidget { 6 | @override 7 | _MapsState createState() => _MapsState(); 8 | } 9 | 10 | class _MapsState extends State { 11 | @override 12 | Widget build(BuildContext context) { 13 | return Column( 14 | children: [ 15 | Expanded( 16 | child: Padding( 17 | padding: const EdgeInsets.symmetric(horizontal: 4.0), 18 | child: EasyGoogleMaps( 19 | key: ValueKey('key_1'), 20 | apiKey: kGoogleMapsApiKey, 21 | address: 22 | '1600 Amphitheatre Parkway, Mountain View, California, United States ', 23 | title: 'Googleplex', 24 | ), 25 | ), 26 | ), 27 | ], 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Justin Enerio 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:retro95/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(App()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Retro95 18 | 19 | 20 | 21 | 24 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Retro95 18 | 19 | 20 | 21 | 24 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /lib/apps/notepad/textfield95.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter95/flutter95.dart'; 3 | 4 | // from Flutter95 package 5 | class TextField95 extends StatefulWidget { 6 | const TextField95({ 7 | Key key, 8 | this.controller, 9 | this.keyboardType = TextInputType.text, 10 | this.maxLines = 1, 11 | }) : super(key: key); 12 | 13 | final TextEditingController controller; 14 | 15 | final TextInputType keyboardType; 16 | 17 | final int maxLines; 18 | 19 | @override 20 | _TextField95State createState() => _TextField95State(); 21 | } 22 | 23 | class _TextField95State extends State { 24 | @override 25 | Widget build(BuildContext context) { 26 | return Elevation95( 27 | type: Elevation95Type.down, 28 | child: Container( 29 | padding: EdgeInsets.all(4.0), 30 | color: Flutter95.white, 31 | height: 32, 32 | child: Material( 33 | color: Flutter95.white, 34 | child: TextField( 35 | controller: widget.controller, 36 | decoration: InputDecoration( 37 | isDense: true, 38 | border: InputBorder.none, 39 | ), 40 | cursorColor: Flutter95.black, 41 | style: Flutter95.textStyle, 42 | keyboardType: widget.keyboardType, 43 | maxLines: widget.maxLines, 44 | ), 45 | ), 46 | ), 47 | ); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | retro95 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /lib/constants/constants.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:retro95/models/application.dart'; 3 | 4 | class Constants { 5 | static const backgroundColor = Color(0xFF008080); 6 | static const bsodColor = Color(0xFF0100aa); 7 | static const iconSelectedColor = Color(0xFF000080); 8 | 9 | static List defaultApps = [ 10 | Application( 11 | label: 'Counter', 12 | image: 'assets/images/tree.png', 13 | processName: 'tree-app', 14 | maximized: true, 15 | ), 16 | Application( 17 | label: 'Browser', 18 | image: 'assets/images/browser.png', 19 | processName: 'browser-app', 20 | maximized: true, 21 | ), 22 | Application( 23 | label: 'Doom95', 24 | image: 'assets/images/application.png', 25 | processName: 'dummy-app', 26 | maximized: true, 27 | ), 28 | Application( 29 | label: 'Notepad', 30 | image: 'assets/images/notepad.png', 31 | processName: 'notepad-app', 32 | maximized: true, 33 | ), 34 | Application( 35 | label: 'Maps', 36 | image: 'assets/images/maps.png', 37 | processName: 'maps-app', 38 | maximized: true, 39 | ), 40 | Application( 41 | label: 'Flutter95', 42 | image: 'assets/images/windows.png', 43 | processName: 'flutter95-app', 44 | maximized: true, 45 | ), 46 | Application( 47 | label: 'Calculator', 48 | image: 'assets/images/calculator.png', 49 | processName: 'calculator-app', 50 | maximized: false, 51 | ), 52 | Application( 53 | label: 'About', 54 | image: 'assets/images/hack20_logo.png', 55 | processName: 'about-app', 56 | maximized: false, 57 | ), 58 | ]; 59 | } 60 | -------------------------------------------------------------------------------- /lib/apps/counter/counter.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter95/flutter95.dart'; 3 | 4 | class CounterApp extends StatefulWidget { 5 | CounterApp({Key key}) : super(key: key); 6 | 7 | @override 8 | _CounterAppState createState() => _CounterAppState(); 9 | } 10 | 11 | class _CounterAppState extends State { 12 | int _counter = 0; 13 | 14 | void _incrementCounter() { 15 | setState(() { 16 | _counter++; 17 | }); 18 | } 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | return Container( 23 | padding: const EdgeInsets.symmetric(horizontal: 4.0), 24 | child: Elevation95( 25 | type: Elevation95Type.down, 26 | child: Center( 27 | child: Column( 28 | mainAxisSize: MainAxisSize.min, 29 | children: [ 30 | Text( 31 | 'You have pushed the button this many times:', 32 | style: Flutter95.textStyle, 33 | ), 34 | const SizedBox(height: 32), 35 | Elevation95( 36 | type: Elevation95Type.down, 37 | child: Container( 38 | padding: 39 | const EdgeInsets.symmetric(horizontal: 12, vertical: 8), 40 | child: Text( 41 | '$_counter', 42 | style: Theme.of(context).textTheme.headline4, 43 | ), 44 | ), 45 | ), 46 | const SizedBox(height: 32), 47 | Button95( 48 | onTap: _incrementCounter, 49 | child: Text('Increment'), 50 | ), 51 | ], 52 | ), 53 | ), 54 | ), 55 | ); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /lib/apps/notepad/notepad.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter95/flutter95.dart' hide TextField95; 3 | import 'package:retro95/apps/notepad/textfield95.dart'; 4 | 5 | class Notepad extends StatelessWidget { 6 | @override 7 | Widget build(BuildContext context) { 8 | return Container( 9 | child: Column( 10 | children: [ 11 | Toolbar95(actions: [ 12 | Item95( 13 | label: 'File', 14 | menu: _buildMenu(), 15 | ), 16 | Item95( 17 | label: 'Edit', 18 | onTap: (context) {}, 19 | ), 20 | Item95( 21 | label: 'Format', 22 | onTap: (context) {}, 23 | ), 24 | Item95( 25 | label: 'Help', 26 | onTap: (context) {}, 27 | ), 28 | ]), 29 | const SizedBox(height: 4), 30 | Expanded( 31 | child: Padding( 32 | padding: const EdgeInsets.symmetric(horizontal: 4.0), 33 | child: Elevation95( 34 | type: Elevation95Type.down, 35 | child: TextField95( 36 | keyboardType: TextInputType.multiline, 37 | maxLines: null, 38 | ), 39 | ), 40 | ), 41 | ), 42 | ], 43 | ), 44 | ); 45 | } 46 | 47 | Menu95 _buildMenu() { 48 | return Menu95( 49 | items: [ 50 | MenuItem95( 51 | value: 1, 52 | label: 'New', 53 | ), 54 | MenuItem95( 55 | value: 2, 56 | label: 'Open', 57 | ), 58 | MenuItem95( 59 | value: 3, 60 | label: 'Exit', 61 | ), 62 | ], 63 | onItemSelected: (item) {}, 64 | ); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 28 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "com.example.retro95" 42 | minSdkVersion 16 43 | targetSdkVersion 28 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | } 47 | 48 | buildTypes { 49 | release { 50 | // TODO: Add your own signing config for the release build. 51 | // Signing with the debug keys for now, so `flutter run --release` works. 52 | signingConfig signingConfigs.debug 53 | } 54 | } 55 | } 56 | 57 | flutter { 58 | source '../..' 59 | } 60 | 61 | dependencies { 62 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 63 | } 64 | -------------------------------------------------------------------------------- /lib/widgets/toolbar_item.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter95/flutter95.dart'; 3 | 4 | class ToolbarItem95 extends StatefulWidget { 5 | const ToolbarItem95({ 6 | this.onTap, 7 | this.child, 8 | this.padding = const EdgeInsets.symmetric(vertical: 4, horizontal: 20), 9 | this.height = 30, 10 | Key key, 11 | this.isSelected = false, 12 | }) : super(key: key); 13 | 14 | final Function() onTap; 15 | final Widget child; 16 | final EdgeInsetsGeometry padding; 17 | final double height; 18 | final bool isSelected; 19 | 20 | @override 21 | _ToolbarItem95State createState() => _ToolbarItem95State(); 22 | } 23 | 24 | class _ToolbarItem95State extends State { 25 | bool _tapped = false; 26 | 27 | @override 28 | Widget build(BuildContext context) { 29 | bool isSelected = widget.isSelected; 30 | 31 | return SizedBox( 32 | height: widget.height, 33 | child: GestureDetector( 34 | onTap: () { 35 | widget.onTap(); 36 | isSelected = false; 37 | }, 38 | onTapDown: (details) => setState(() { 39 | if (widget.onTap != null) { 40 | _tapped = true; 41 | } 42 | }), 43 | onTapUp: (details) => setState(() { 44 | _tapped = false; 45 | }), 46 | onTapCancel: () => setState(() => _tapped = false), 47 | child: Container( 48 | decoration: isSelected 49 | ? Flutter95.elevatedDecorationOutside 50 | : Flutter95.elevatedDecorationOutside, 51 | child: Container( 52 | padding: widget.padding, 53 | decoration: _tapped 54 | ? Flutter95.pressedDecoration 55 | : Flutter95.elevatedDecoration, 56 | child: DefaultTextStyle( 57 | style: widget.onTap != null 58 | ? Flutter95.textStyle 59 | : Flutter95.disabledTextStyle, 60 | child: Padding( 61 | padding: _tapped 62 | ? const EdgeInsets.only(top: 1.0, left: 1.0) 63 | : const EdgeInsets.all(0.0), 64 | child: widget.child, 65 | ), 66 | ), 67 | ), 68 | ), 69 | ), 70 | ); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 12 | 19 | 23 | 27 | 32 | 36 | 37 | 38 | 39 | 40 | 41 | 43 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # Retro 95 - Windows 95 Desktop Experience 3 | 4 |
5 | 6 | Experience nostalgia with the iconic Windows 95 right from your browser. Retro 95 is an attempt to recreate the Windows 95 desktop experience with Flutter. Contains programs like notepad , a web browser, calculator and more. 7 | 8 | Developed with Flutter Web, but will compile to all platforms that Flutter supports. 9 | 10 | A Retro Theme Flutter Hack 20 Entry! 11 | 12 | ## Features 13 | * Reorder Desktop Icons 14 | * Draggable and resizable windows 15 | * Start Menu 16 | * Desktop Applications 17 | * Windows 95 Desktop Feel 18 | 19 | ## Apps 20 | * Notepad 21 | * Browser 22 | * Maps 23 | * Doom95 (Yes!) 24 | * Flutter Counter 25 | * Flutter95 Example App 26 | * Calculator 27 | * About 28 | 29 | ## Screenshots 30 |

31 | 32 | 33 | 34 |

35 | 36 | ## Demo 37 | 38 | Windows 95 desktop experience right from your browser: [https://justinenerio.github.io/retro95/#/](https://justinenerio.github.io/retro95/#/) 39 | 40 | ## Getting Started 41 | 42 | These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. 43 | 44 | ### Prerequisites 45 | 46 | Download either Android Studio or Visual Studio Code, with their respective [Flutter editor plugins](https://flutter.dev/get-started/editor/). For more information about Flutter installation procedure, check the [official install guide](https://flutter.dev/get-started/install/). 47 | 48 | ### Steps 49 | 1. Clone the repository with the 'clone' command, or just download the zip. 50 | 51 | 2. Install dependencies from pubspec.yaml by running `flutter packages get` from the project root (see [using packages documentation](https://flutter.io/using-packages/#adding-a-package-dependency-to-an-app) for details and how to do this in the editor). 52 | 53 | 3. Add `/constants/api_key.dart` file with API key from [Google Embedded Maps API](https://developers.google.com/maps/documentation/embed/get-api-key). 54 | 55 | 4. Run. 56 | 57 | ## Built With 58 | 59 | * [Flutter](https://flutter.dev/) - <3 60 | * [Flutter95](https://pub.dev/packages/flutter95) - Windows95 Theme inspiration 61 | 62 | ## Contributing 63 | 64 | Contributions are welcome! Submit an issue for discussion and a PR for the code. 65 | 66 | > **Note:** Code is dirty and rushed. This was made in short duration of the hackathon. 67 | 68 | ## License 69 | 70 | This project is licensed under the MIT License - see the [LICENSE.md](./LICENSE.md) file for details 71 | 72 | ## Acknowledgments 73 | 74 | * Flutter Community for hosting this hackathon 75 | * [Artage.io](https://artage.io) for Windows 95 icons 76 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /lib/apps/browser/browser.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter95/flutter95.dart'; 3 | import 'package:easy_web_view/easy_web_view.dart'; 4 | 5 | class Browser extends StatefulWidget { 6 | @override 7 | _BrowserState createState() => _BrowserState(); 8 | } 9 | 10 | class _BrowserState extends State { 11 | String _url = 'https://flutter.dev/'; 12 | TextEditingController _controller; 13 | 14 | @override 15 | void initState() { 16 | super.initState(); 17 | _controller = TextEditingController(text: _url); 18 | } 19 | 20 | @override 21 | void dispose() { 22 | _controller.dispose(); 23 | super.dispose(); 24 | } 25 | 26 | @override 27 | Widget build(BuildContext context) { 28 | return Container( 29 | child: Column( 30 | children: [ 31 | Toolbar95(actions: [ 32 | Item95( 33 | label: 'File', 34 | menu: _buildMenu(), 35 | ), 36 | Item95( 37 | label: 'Edit', 38 | onTap: (context) {}, 39 | ), 40 | Item95( 41 | label: 'View', 42 | onTap: (context) {}, 43 | ), 44 | Item95( 45 | label: 'Favorites', 46 | onTap: (context) {}, 47 | ), 48 | Item95( 49 | label: 'Help', 50 | onTap: (context) {}, 51 | ), 52 | ]), 53 | const SizedBox(height: 4), 54 | Container( 55 | padding: const EdgeInsets.symmetric(horizontal: 18.0, vertical: 2.0), 56 | child: Row( 57 | mainAxisSize: MainAxisSize.max, 58 | children: [ 59 | Text('Address', style: Flutter95.textStyle), 60 | const SizedBox(width: 4), 61 | Expanded( 62 | child: Padding( 63 | padding: const EdgeInsets.symmetric(horizontal: 8.0), 64 | child: TextField95(controller: _controller), 65 | ), 66 | ), 67 | Button95( 68 | height: 35, 69 | onTap: () { 70 | setState(() { 71 | _url = _controller.text; 72 | }); 73 | }, 74 | child: Center(child: Text('Go')), 75 | ) 76 | ], 77 | ), 78 | ), 79 | const SizedBox(height: 4), 80 | Expanded( 81 | child: Padding( 82 | padding: const EdgeInsets.symmetric(horizontal: 4.0), 83 | child: Elevation95( 84 | type: Elevation95Type.down, 85 | child: EasyWebView( 86 | key: ValueKey('key_0'), 87 | src: _url, 88 | ), 89 | ), 90 | ), 91 | ), 92 | ], 93 | )); 94 | } 95 | 96 | Menu95 _buildMenu() { 97 | return Menu95( 98 | items: [ 99 | MenuItem95( 100 | value: 1, 101 | label: 'New', 102 | ), 103 | MenuItem95( 104 | value: 2, 105 | label: 'Open', 106 | ), 107 | MenuItem95( 108 | value: 3, 109 | label: 'Exit', 110 | ), 111 | ], 112 | onItemSelected: (item) {}, 113 | ); 114 | } 115 | } 116 | -------------------------------------------------------------------------------- /lib/apps/bluescreen/blue_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/services.dart'; 3 | import 'package:flutter95/flutter95.dart'; 4 | import 'package:retro95/constants/constants.dart'; 5 | import 'package:retro95/widgets/restart_widget.dart'; 6 | 7 | class BlueScreen extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | SystemChrome.setSystemUIOverlayStyle( 11 | SystemUiOverlayStyle(statusBarColor: Constants.bsodColor), 12 | ); 13 | 14 | return GestureDetector( 15 | onTap: () { 16 | RestartWidget.restartApp(context); 17 | }, 18 | child: Scaffold( 19 | backgroundColor: Constants.bsodColor, 20 | body: SizedBox.expand( 21 | child: Container( 22 | padding: const EdgeInsets.all(32.0), 23 | child: Column( 24 | mainAxisAlignment: MainAxisAlignment.center, 25 | crossAxisAlignment: CrossAxisAlignment.center, 26 | children: [ 27 | Container( 28 | padding: const EdgeInsets.all(4.0), 29 | color: Color(0xFFa7aab0), 30 | child: Text( 31 | 'Windows', 32 | style: Flutter95.textStyle.copyWith( 33 | color: Color(0xFF0100aa), 34 | fontSize: 32, 35 | fontWeight: FontWeight.bold, 36 | letterSpacing: 3.0, 37 | ), 38 | ), 39 | ), 40 | const SizedBox(height: 52), 41 | Text( 42 | 'A fatal exception 0E has occured at 0028:C0026822 in VXD VFAT(01) 0000690E. \nThe current application will be terminated.', 43 | style: Flutter95.textStyle.copyWith( 44 | color: Colors.white, 45 | fontSize: 24, 46 | fontWeight: FontWeight.bold, 47 | letterSpacing: 3.0, 48 | ), 49 | ), 50 | const SizedBox(height: 48), 51 | Text( 52 | '* Press any key to terminate the current application.', 53 | style: Flutter95.textStyle.copyWith( 54 | color: Colors.white, 55 | fontSize: 24, 56 | fontWeight: FontWeight.bold, 57 | letterSpacing: 3.0, 58 | ), 59 | ), 60 | Text( 61 | '* Press CTRL+ALT+DEL again to restart your computer. You will \nlose any unsaved information in all applications.', 62 | style: Flutter95.textStyle.copyWith( 63 | color: Colors.white, 64 | fontSize: 24, 65 | fontWeight: FontWeight.bold, 66 | letterSpacing: 3.0, 67 | ), 68 | ), 69 | const SizedBox(height: 52), 70 | Text( 71 | 'Press any ALT+F4 to continue _', 72 | style: Flutter95.textStyle.copyWith( 73 | color: Colors.white, 74 | fontSize: 24, 75 | fontWeight: FontWeight.bold, 76 | letterSpacing: 3.0, 77 | ), 78 | ), 79 | ], 80 | ), 81 | ), 82 | ), 83 | ), 84 | ); 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /lib/apps/about/about.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/gestures.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter95/flutter95.dart'; 4 | import 'package:retro95/constants/constants.dart'; 5 | import 'package:url_launcher/url_launcher.dart'; 6 | 7 | class About extends StatelessWidget { 8 | _launchURL() async { 9 | const url = 'https://github.com/justinenerio/retro95'; 10 | if (await canLaunch(url)) { 11 | await launch(url); 12 | } else { 13 | throw 'Could not launch $url'; 14 | } 15 | } 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | return Column( 20 | children: [ 21 | Expanded( 22 | child: Padding( 23 | padding: const EdgeInsets.symmetric(horizontal: 4.0), 24 | child: Elevation95( 25 | type: Elevation95Type.down, 26 | child: Container( 27 | child: Center( 28 | child: Container( 29 | width: 400, 30 | child: Column( 31 | mainAxisSize: MainAxisSize.min, 32 | crossAxisAlignment: CrossAxisAlignment.start, 33 | children: [ 34 | Image.asset('assets/images/hack20.png'), 35 | const SizedBox(height: 16), 36 | Center( 37 | child: Text( 38 | '#Hack20 Entry', 39 | style: Flutter95.textStyle.copyWith( 40 | letterSpacing: 2.0, 41 | ), 42 | ), 43 | ), 44 | const SizedBox(height: 72), 45 | Text( 46 | 'Retro 95 - Windows 95 Desktop Experience', 47 | style: Flutter95.textStyle.copyWith( 48 | letterSpacing: 2.0, 49 | ), 50 | ), 51 | const SizedBox(height: 24), 52 | Text( 53 | 'Experience nostalgia with the iconic Windows 95 right from your browser. Retro 95 is an attempt to recreate the Windows 95 desktop experience with Flutter. Contains programs like notepad , a web browser, calculator and more.', 54 | style: Flutter95.textStyle.copyWith( 55 | letterSpacing: 2.0, 56 | ), 57 | textAlign: TextAlign.justify, 58 | ), 59 | const SizedBox(height: 32), 60 | RichText( 61 | text: TextSpan( 62 | text: 'GitHub Repository: ', 63 | style: Flutter95.textStyle.copyWith( 64 | letterSpacing: 2.0, 65 | ), 66 | children: [ 67 | TextSpan( 68 | text: 69 | 'https://github.com/justinenerio/retro95', 70 | style: TextStyle(color: Constants.bsodColor), 71 | recognizer: TapGestureRecognizer() 72 | ..onTap = () { 73 | _launchURL(); 74 | }) 75 | ], 76 | ), 77 | ), 78 | ], 79 | ), 80 | ), 81 | ), 82 | ), 83 | ), 84 | ), 85 | ), 86 | ], 87 | ); 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /lib/apps/flutter95/flutter95.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter95/flutter95.dart'; 3 | 4 | // https://pub.dev/packages/flutter95 5 | class Flutter95Screen extends StatelessWidget { 6 | @override 7 | Widget build(BuildContext context) { 8 | return Container( 9 | child: Column( 10 | children: [ 11 | Toolbar95(actions: [ 12 | Item95( 13 | label: 'File', 14 | menu: _buildMenu(), 15 | ), 16 | Item95( 17 | label: 'Edit', 18 | onTap: (context) {}, 19 | ), 20 | Item95( 21 | label: 'Save', 22 | ), 23 | ]), 24 | const SizedBox(height: 4), 25 | Expanded( 26 | child: Padding( 27 | padding: const EdgeInsets.symmetric(horizontal: 4.0), 28 | child: Elevation95( 29 | type: Elevation95Type.down, 30 | child: Column( 31 | children: [ 32 | const SizedBox(height: 4), 33 | Row( 34 | mainAxisAlignment: MainAxisAlignment.center, 35 | children: [ 36 | Button95( 37 | onTap: () { 38 | Navigator.of(context).push(MaterialPageRoute( 39 | builder: (context) => ScreenThatCanPop())); 40 | }, 41 | child: Text('Button95'), 42 | ), 43 | Button95( 44 | child: Text('Disabled'), 45 | ), 46 | ], 47 | ), 48 | const SizedBox(height: 4), 49 | Text( 50 | 'Text with Flutter95.textStyle', 51 | style: Flutter95.textStyle, 52 | ), 53 | Padding( 54 | padding: const EdgeInsets.symmetric(horizontal: 8.0), 55 | child: TextField95(), 56 | ), 57 | _buildListView(), 58 | ], 59 | ), 60 | ), 61 | ), 62 | ), 63 | ], 64 | ), 65 | ); 66 | } 67 | 68 | Menu95 _buildMenu() { 69 | return Menu95( 70 | items: [ 71 | MenuItem95( 72 | value: 1, 73 | label: 'New', 74 | ), 75 | MenuItem95( 76 | value: 2, 77 | label: 'Open', 78 | ), 79 | MenuItem95( 80 | value: 3, 81 | label: 'Exit', 82 | ), 83 | ], 84 | onItemSelected: (item) {}, 85 | ); 86 | } 87 | 88 | /// Build a ListView wrapping it in [Elevation95] with [Elevation95Type.down]. 89 | /// This will create a "deep" container. 90 | /// Then wrap each item with [Elevation95Type.up] to create an up effect. 91 | Padding _buildListView() { 92 | return Padding( 93 | padding: const EdgeInsets.symmetric( 94 | horizontal: 8.0, 95 | vertical: 8.0, 96 | ), 97 | child: Elevation95( 98 | type: Elevation95Type.down, 99 | child: SizedBox( 100 | height: 100, 101 | child: ListView.builder( 102 | padding: EdgeInsets.zero, 103 | itemCount: 100, 104 | itemBuilder: (context, index) { 105 | return Elevation95( 106 | child: Padding( 107 | padding: const EdgeInsets.all(8.0), 108 | child: Text( 109 | 'Item $index', 110 | style: Flutter95.textStyle, 111 | ), 112 | ), 113 | ); 114 | }, 115 | ), 116 | ), 117 | ), 118 | ); 119 | } 120 | } 121 | 122 | class ScreenThatCanPop extends StatelessWidget { 123 | @override 124 | Widget build(BuildContext context) { 125 | return Scaffold95( 126 | title: 'Screen that can pop', 127 | body: Container(), 128 | ); 129 | } 130 | } 131 | -------------------------------------------------------------------------------- /lib/widgets/custom_scaffold95.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/widgets.dart'; 3 | import 'package:flutter95/flutter95.dart'; 4 | 5 | class CustomScaffold95 extends StatelessWidget { 6 | const CustomScaffold95({ 7 | @required this.title, 8 | @required this.body, 9 | this.toolbar, 10 | Key key, 11 | this.onClose, 12 | this.onMinimize, 13 | this.onMaximize, 14 | this.headerImage, 15 | }) : super(key: key); 16 | 17 | final String title; 18 | final Widget body; 19 | final Toolbar95 toolbar; 20 | final Function onClose; 21 | final Function onMinimize; 22 | final Function onMaximize; 23 | final Image headerImage; 24 | 25 | @override 26 | Widget build(BuildContext context) { 27 | return Elevation95( 28 | child: Column( 29 | children: [ 30 | WindowHeader95( 31 | title: title, 32 | onMinimize: onMinimize, 33 | onClose: onClose, 34 | onMaximize: onMaximize, 35 | headerImage: headerImage, 36 | ), 37 | const SizedBox(height: 4), 38 | if (toolbar != null) toolbar, 39 | if (toolbar != null) const SizedBox(height: 4), 40 | Expanded( 41 | child: body, 42 | ), 43 | ], 44 | ), 45 | ); 46 | } 47 | } 48 | 49 | class WindowHeader95 extends StatefulWidget { 50 | const WindowHeader95({ 51 | @required this.title, 52 | Key key, 53 | this.onClose, 54 | this.onMinimize, 55 | this.onMaximize, 56 | this.headerImage, 57 | }) : super(key: key); 58 | 59 | final String title; 60 | 61 | final Function onClose; 62 | final Function onMinimize; 63 | final Function onMaximize; 64 | final Image headerImage; 65 | 66 | @override 67 | _WindowHeader95State createState() => _WindowHeader95State(); 68 | } 69 | 70 | class _WindowHeader95State extends State { 71 | @override 72 | Widget build(BuildContext context) { 73 | return SafeArea( 74 | child: Padding( 75 | padding: const EdgeInsets.symmetric(horizontal: 2.0), 76 | child: Container( 77 | height: 33, 78 | decoration: BoxDecoration( 79 | gradient: LinearGradient( 80 | colors: [ 81 | Flutter95.headerDark, 82 | Flutter95.headerLight, 83 | ], 84 | ), 85 | ), 86 | child: Row( 87 | children: [ 88 | const SizedBox(width: 8), 89 | if (widget.headerImage != null) 90 | Container( 91 | height: 20, 92 | width: 20, 93 | child: widget.headerImage, 94 | ), 95 | const SizedBox(width: 8), 96 | Text( 97 | widget.title, 98 | style: Flutter95.headerTextStyle, 99 | ), 100 | Spacer(), 101 | if (widget.onMinimize != null) 102 | HeadButton95( 103 | icon: Icons.minimize, 104 | onClick: widget.onMinimize, 105 | ), 106 | const SizedBox(width: 4), 107 | if (widget.onMaximize != null) 108 | HeadButton95( 109 | icon: Icons.crop_square, 110 | onClick: widget.onMaximize, 111 | ), 112 | const SizedBox(width: 4), 113 | HeadButton95( 114 | icon: Icons.close, 115 | onClick: widget.onClose, 116 | ), 117 | const SizedBox(width: 4), 118 | ], 119 | ), 120 | ), 121 | ), 122 | ); 123 | } 124 | } 125 | 126 | class HeadButton95 extends StatelessWidget { 127 | const HeadButton95({ 128 | Key key, 129 | this.onClick, 130 | this.icon = Icons.close, 131 | }) : super(key: key); 132 | 133 | final Function onClick; 134 | 135 | final IconData icon; 136 | 137 | @override 138 | Widget build(BuildContext context) { 139 | return Button95( 140 | height: 24, 141 | padding: EdgeInsets.zero, 142 | onTap: onClick, 143 | child: Icon( 144 | icon, 145 | size: 20, 146 | ), 147 | ); 148 | } 149 | } 150 | -------------------------------------------------------------------------------- /lib/widgets/toolbar.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter95/flutter95.dart'; 5 | import 'package:intl/intl.dart'; 6 | import 'package:retro95/constants/constants.dart'; 7 | import 'package:retro95/models/application.dart'; 8 | import 'package:retro95/widgets/toolbar_item.dart'; 9 | 10 | class ToolBar extends StatelessWidget { 11 | final List activeApps; 12 | final Function onOpenApp; 13 | 14 | const ToolBar({Key key, this.activeApps, this.onOpenApp}) : super(key: key); 15 | @override 16 | Widget build(BuildContext context) { 17 | return Elevation95( 18 | child: Container( 19 | padding: EdgeInsets.all(4.0), 20 | color: Flutter95.background, 21 | child: Row( 22 | mainAxisSize: MainAxisSize.max, 23 | children: [ 24 | Button95( 25 | padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 12), 26 | onTap: () { 27 | final items = Constants.defaultApps 28 | .map( 29 | (app) => MenuItem95( 30 | label: app.label, 31 | value: app, 32 | ), 33 | ) 34 | .toList(); 35 | 36 | final menu = Menu95( 37 | items: items, 38 | onItemSelected: (val) { 39 | if (val != null) onOpenApp(val); 40 | }); 41 | 42 | menu.show( 43 | context, 44 | context.rect.shift(Offset(0, 24)), 45 | ); 46 | }, 47 | child: Row( 48 | mainAxisSize: MainAxisSize.min, 49 | crossAxisAlignment: CrossAxisAlignment.center, 50 | mainAxisAlignment: MainAxisAlignment.center, 51 | children: [ 52 | Image.asset('assets/images/windows.png'), 53 | const SizedBox(width: 8.0), 54 | Text( 55 | 'Start', 56 | style: Flutter95.textStyle 57 | .copyWith(fontWeight: FontWeight.bold), 58 | ), 59 | ], 60 | ), 61 | ), 62 | const SizedBox(width: 10), 63 | Expanded( 64 | child: Container( 65 | height: 30, 66 | child: ListView( 67 | scrollDirection: Axis.horizontal, 68 | children: [ 69 | for (final app in activeApps) 70 | ToolBarItem( 71 | app: app, 72 | onTapItem: () {}, 73 | ) 74 | ], 75 | ), 76 | ), 77 | ), 78 | const SizedBox(width: 10), 79 | Elevation95( 80 | type: Elevation95Type.down, 81 | child: Container( 82 | padding: 83 | const EdgeInsets.symmetric(vertical: 4.0, horizontal: 12.0), 84 | child: TimeWidget(), 85 | ), 86 | ) 87 | ], 88 | ), 89 | ), 90 | ); 91 | } 92 | } 93 | 94 | class ToolBarItem extends StatefulWidget { 95 | final Application app; 96 | final Function onTapItem; 97 | final EdgeInsetsGeometry padding; 98 | 99 | const ToolBarItem({ 100 | Key key, 101 | this.app, 102 | this.padding = const EdgeInsets.symmetric(vertical: 4, horizontal: 20), 103 | this.onTapItem, 104 | }) : super(key: key); 105 | 106 | @override 107 | _ToolBarItemState createState() => _ToolBarItemState(); 108 | } 109 | 110 | class _ToolBarItemState extends State { 111 | @override 112 | Widget build(BuildContext context) { 113 | return Container( 114 | padding: const EdgeInsets.only(right: 4.0), 115 | child: ToolbarItem95( 116 | isSelected: true, 117 | child: Row( 118 | mainAxisSize: MainAxisSize.min, 119 | crossAxisAlignment: CrossAxisAlignment.start, 120 | mainAxisAlignment: MainAxisAlignment.start, 121 | children: [ 122 | if (widget.app.image != null) Image.asset(widget.app.image), 123 | const SizedBox(width: 8.0), 124 | Text( 125 | widget.app.label, 126 | style: Flutter95.textStyle, 127 | ), 128 | ], 129 | ), 130 | onTap: () {}, 131 | ), 132 | ); 133 | } 134 | } 135 | 136 | class TimeWidget extends StatefulWidget { 137 | @override 138 | _TimeWidgetState createState() => _TimeWidgetState(); 139 | } 140 | 141 | class _TimeWidgetState extends State { 142 | String _timeString = ''; 143 | 144 | @override 145 | void initState() { 146 | _timeString = getTime(); 147 | Timer.periodic(Duration(minutes: 1), (Timer t) => _getCurrentTime()); 148 | super.initState(); 149 | } 150 | 151 | @override 152 | Widget build(BuildContext context) { 153 | return Text( 154 | _timeString, 155 | style: Flutter95.textStyle, 156 | ); 157 | } 158 | 159 | void _getCurrentTime() { 160 | if (mounted) 161 | setState(() { 162 | _timeString = getTime(); 163 | }); 164 | } 165 | 166 | String getTime() { 167 | final now = DateTime.now(); 168 | 169 | return DateFormat('h:mm a').format(now); 170 | } 171 | } 172 | -------------------------------------------------------------------------------- /lib/apps/root.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/services.dart'; 3 | import 'package:flutter95/flutter95.dart'; 4 | import 'package:reorderables/reorderables.dart'; 5 | import 'package:retro95/constants/constants.dart'; 6 | import 'package:retro95/models/application.dart'; 7 | import 'package:retro95/widgets/window.dart'; 8 | import 'package:retro95/widgets/toolbar.dart'; 9 | 10 | class Root extends StatefulWidget { 11 | @override 12 | _RootState createState() => _RootState(); 13 | } 14 | 15 | class _RootState extends State { 16 | List _activeApps = []; 17 | 18 | int applicationId = 0; 19 | 20 | @override 21 | void initState() { 22 | super.initState(); 23 | 24 | SystemChrome.setSystemUIOverlayStyle( 25 | SystemUiOverlayStyle(statusBarColor: Constants.backgroundColor), 26 | ); 27 | } 28 | 29 | void onOpenApp(Application app) { 30 | setState(() { 31 | _activeApps.add(app.copyWith( 32 | processId: applicationId, 33 | minimized: false, 34 | )); 35 | applicationId++; 36 | }); 37 | } 38 | 39 | void onCloseApp(int processId) { 40 | final list = 41 | _activeApps.where((val) => val.processId != processId).toList(); 42 | setState(() { 43 | _activeApps = list; 44 | }); 45 | } 46 | 47 | void onMinimize() {} 48 | 49 | @override 50 | Widget build(BuildContext context) { 51 | return Scaffold( 52 | body: SafeArea( 53 | child: Column( 54 | mainAxisSize: MainAxisSize.max, 55 | mainAxisAlignment: MainAxisAlignment.start, 56 | crossAxisAlignment: CrossAxisAlignment.start, 57 | children: [ 58 | Expanded( 59 | child: LayoutBuilder( 60 | builder: (context, constraints) { 61 | return Stack( 62 | children: [ 63 | Desktop( 64 | constraints: constraints, 65 | onOpenApp: onOpenApp, 66 | ), 67 | for (final app in _activeApps) 68 | Window( 69 | app: app, 70 | onCloseApp: onCloseApp, 71 | onMinizeApp: onMinimize, 72 | constraints: constraints, 73 | ) 74 | ], 75 | ); 76 | }, 77 | ), 78 | ), 79 | Container( 80 | child: ToolBar( 81 | activeApps: _activeApps, 82 | onOpenApp: onOpenApp, 83 | ), 84 | ) 85 | ], 86 | ), 87 | ), 88 | ); 89 | } 90 | } 91 | 92 | class Desktop extends StatefulWidget { 93 | final BoxConstraints constraints; 94 | final Function onOpenApp; 95 | 96 | const Desktop({ 97 | Key key, 98 | this.constraints, 99 | this.onOpenApp, 100 | }) : super(key: key); 101 | 102 | @override 103 | _DesktopState createState() => _DesktopState(); 104 | } 105 | 106 | class _DesktopState extends State { 107 | List defaultApps = Constants.defaultApps; 108 | Application _selected; 109 | 110 | void _onReorder(int oldIndex, int newIndex) { 111 | setState(() { 112 | Application row = defaultApps.removeAt(oldIndex); 113 | defaultApps.insert(newIndex, row); 114 | }); 115 | } 116 | 117 | @override 118 | Widget build(BuildContext context) { 119 | return GestureDetector( 120 | onTap: () { 121 | setState(() { 122 | _selected = null; 123 | }); 124 | }, 125 | child: Container( 126 | width: widget.constraints.maxWidth, 127 | height: widget.constraints.maxHeight, 128 | padding: const EdgeInsets.symmetric(horizontal: 18, vertical: 8), 129 | color: Color(0xFF008080), 130 | child: ReorderableWrap( 131 | direction: Axis.vertical, 132 | crossAxisAlignment: WrapCrossAlignment.start, 133 | alignment: WrapAlignment.start, 134 | scrollDirection: Axis.horizontal, 135 | spacing: 32.0, 136 | runSpacing: 32.0, 137 | padding: const EdgeInsets.all(8), 138 | buildDraggableFeedback: (context, constraints, child) { 139 | return Transform( 140 | transform: new Matrix4.rotationZ(0), 141 | alignment: FractionalOffset.topLeft, 142 | child: Material( 143 | child: Container( 144 | color: Constants.backgroundColor, 145 | child: ConstrainedBox(constraints: constraints, child: child), 146 | ), 147 | color: Constants.backgroundColor, 148 | borderRadius: BorderRadius.zero, 149 | ), 150 | ); 151 | }, 152 | children: defaultApps.map((app) { 153 | final bool _isSelected = _selected != null 154 | ? (app.processName == _selected.processName) ? true : false 155 | : false; 156 | 157 | return GestureDetector( 158 | onTap: () { 159 | setState(() { 160 | _selected = app; 161 | }); 162 | }, 163 | onDoubleTap: () { 164 | widget.onOpenApp(app); 165 | }, 166 | child: Column( 167 | mainAxisSize: MainAxisSize.min, 168 | mainAxisAlignment: MainAxisAlignment.start, 169 | crossAxisAlignment: CrossAxisAlignment.center, 170 | children: [ 171 | Container( 172 | height: 55, 173 | width: 55, 174 | color: _isSelected 175 | ? Constants.iconSelectedColor 176 | : Colors.transparent, 177 | child: FittedBox( 178 | child: Image.asset(app.image), 179 | fit: BoxFit.fill, 180 | ), 181 | ), 182 | const SizedBox(height: 8), 183 | SizedBox( 184 | width: 65, 185 | child: Center( 186 | child: Container( 187 | color: _isSelected 188 | ? Constants.iconSelectedColor 189 | : Colors.transparent, 190 | child: Text( 191 | app.label, 192 | style: 193 | Flutter95.textStyle.copyWith(color: Colors.white), 194 | textAlign: TextAlign.center, 195 | ), 196 | ), 197 | ), 198 | ) 199 | ], 200 | ), 201 | ); 202 | }).toList(), 203 | onReorder: _onReorder, 204 | ), 205 | ), 206 | ); 207 | } 208 | } 209 | -------------------------------------------------------------------------------- /lib/apps/calculator/calculator.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter95/flutter95.dart'; 5 | 6 | class Calculator extends StatefulWidget { 7 | @override 8 | _CalculatorState createState() => _CalculatorState(); 9 | } 10 | 11 | class _CalculatorState extends State { 12 | @override 13 | Widget build(BuildContext context) { 14 | return Container( 15 | child: Column( 16 | children: [ 17 | Toolbar95(actions: [ 18 | Item95( 19 | label: 'Edit', 20 | menu: _buildMenu(), 21 | ), 22 | Item95( 23 | label: 'View', 24 | onTap: (context) {}, 25 | ), 26 | Item95( 27 | label: 'Help', 28 | onTap: (context) {}, 29 | ), 30 | ]), 31 | const SizedBox(height: 4), 32 | Elevation95( 33 | type: Elevation95Type.down, 34 | child: Container(height: 0.5), 35 | ), 36 | Expanded( 37 | child: Container( 38 | padding: const EdgeInsets.all(16.0), 39 | child: CalculatorBody(), 40 | ), 41 | ), 42 | ], 43 | ), 44 | ); 45 | } 46 | 47 | Menu95 _buildMenu() { 48 | return Menu95( 49 | items: [ 50 | MenuItem95( 51 | value: 1, 52 | label: 'New', 53 | ), 54 | MenuItem95( 55 | value: 2, 56 | label: 'Open', 57 | ), 58 | MenuItem95( 59 | value: 3, 60 | label: 'Exit', 61 | ), 62 | ], 63 | onItemSelected: (item) {}, 64 | ); 65 | } 66 | } 67 | 68 | // https://github.com/escamoteur/flutter_calculator 69 | class CalculatorBody extends StatefulWidget { 70 | @override 71 | _CalculatorBodyState createState() => _CalculatorBodyState(); 72 | } 73 | 74 | typedef OperatorFunc = double Function(double accu, double operand); 75 | 76 | class _CalculatorBodyState extends State { 77 | TextEditingController _controller; 78 | double accu = 0.0; 79 | double operand = 0.0; 80 | OperatorFunc queuedOperation; 81 | 82 | String resultString = "0.0"; 83 | 84 | @override 85 | void initState() { 86 | super.initState(); 87 | _controller = TextEditingController(text: resultString); 88 | } 89 | 90 | @override 91 | void dispose() { 92 | _controller.dispose(); 93 | super.dispose(); 94 | } 95 | 96 | void numberPressed(int value) { 97 | operand = operand * 10 + value; 98 | setState(() { 99 | resultString = operand.toString(); 100 | _controller = TextEditingController(text: resultString); 101 | }); 102 | } 103 | 104 | void calc(OperatorFunc operation) { 105 | if (operation == null) { 106 | accu = 0.0; 107 | } else { 108 | accu = queuedOperation != null ? queuedOperation(accu, operand) : operand; 109 | } 110 | queuedOperation = operation; 111 | operand = 0.0; 112 | var result = accu.toString(); 113 | setState(() { 114 | resultString = result.toString().substring(0, min(10, result.length)); 115 | _controller = TextEditingController(text: resultString); 116 | }); 117 | } 118 | 119 | List buildNumberButtons(int count, int from) { 120 | return Iterable.generate(count, (index) { 121 | return Expanded( 122 | child: Padding( 123 | padding: const EdgeInsets.all(4.0), 124 | child: Button95( 125 | onTap: () => numberPressed(from + index), 126 | child: Center( 127 | child: Text( 128 | "${from + index}", 129 | style: Flutter95.textStyle.copyWith( 130 | color: Colors.blue, 131 | fontSize: 18, 132 | fontWeight: FontWeight.bold, 133 | ), 134 | ), 135 | )), 136 | ), 137 | ); 138 | }).toList(); 139 | } 140 | 141 | Widget buildOperatorButton(String label, OperatorFunc func) { 142 | return Expanded( 143 | child: Padding( 144 | padding: const EdgeInsets.all(4.0), 145 | child: Button95( 146 | onTap: () => calc(func), 147 | child: Center( 148 | child: Text( 149 | label, 150 | style: Flutter95.textStyle.copyWith( 151 | color: Colors.red, 152 | fontSize: 18, 153 | fontWeight: FontWeight.bold, 154 | ), 155 | ), 156 | ), 157 | ), 158 | ), 159 | ); 160 | } 161 | 162 | Widget buildRow( 163 | int numberKeyCount, 164 | int startNumber, 165 | String operationLabel, 166 | OperatorFunc operation, 167 | String operationLabel2, 168 | OperatorFunc operation2, 169 | ) { 170 | return Expanded( 171 | child: Row( 172 | crossAxisAlignment: CrossAxisAlignment.stretch, 173 | children: List.from( 174 | buildNumberButtons( 175 | numberKeyCount, 176 | startNumber, 177 | ), 178 | ) 179 | ..add( 180 | buildOperatorButton(operationLabel, operation), 181 | ) 182 | ..add( 183 | buildOperatorButton(operationLabel2, operation2), 184 | ), 185 | ), 186 | ); 187 | } 188 | 189 | Widget buildTopRow() { 190 | return Expanded( 191 | child: Container( 192 | padding: const EdgeInsets.all(4.0), 193 | child: Row(crossAxisAlignment: CrossAxisAlignment.stretch, children: [ 194 | Expanded( 195 | child: Padding( 196 | padding: const EdgeInsets.all(4.0), 197 | child: Elevation95( 198 | type: Elevation95Type.down, 199 | child: Container(), 200 | ), 201 | ), 202 | ), 203 | buildOperatorButton('Backspace', null), 204 | buildOperatorButton('CE', null), 205 | buildOperatorButton('C', null), 206 | ]), 207 | ), 208 | ); 209 | } 210 | 211 | Widget buildLastRow() { 212 | return Expanded( 213 | child: Row( 214 | crossAxisAlignment: CrossAxisAlignment.stretch, 215 | children: [ 216 | ...buildNumberButtons( 217 | 1, 218 | 0, 219 | ), 220 | buildOperatorButton('+/-', null), 221 | buildOperatorButton('.', null), 222 | buildOperatorButton('+', (accu, dividor) => accu + dividor), 223 | buildOperatorButton('=', (accu, dividor) => accu), 224 | ], 225 | ), 226 | ); 227 | } 228 | 229 | @override 230 | Widget build(BuildContext context) { 231 | return Column( 232 | crossAxisAlignment: CrossAxisAlignment.end, 233 | children: [ 234 | Container( 235 | height: 50, 236 | child: TextField95(controller: _controller), 237 | ), 238 | const SizedBox(height: 16), 239 | buildTopRow(), 240 | buildRow(3, 7, "/", (accu, dividor) => accu / dividor, "sqrt", null), 241 | buildRow(3, 4, "x", (accu, dividor) => accu * dividor, "%", null), 242 | buildRow(3, 1, "-", (accu, dividor) => accu - dividor, "1/x", null), 243 | buildLastRow(), 244 | ], 245 | ); 246 | } 247 | } 248 | -------------------------------------------------------------------------------- /docs/flutter_service_worker.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const MANIFEST = 'flutter-app-manifest'; 3 | const TEMP = 'flutter-temp-cache'; 4 | const CACHE_NAME = 'flutter-app-cache'; 5 | const RESOURCES = { 6 | "main.dart.js": "34472e8968dbb7bf7dcc269c249b619e", 7 | "icons/Icon-512.png": "96e752610906ba2a93c65f8abe1645f1", 8 | "icons/Icon-192.png": "ac9a721a12bbc803b44f645561ecb1e1", 9 | "index.html": "5a9376462faf605c1554e8d6ebfa381d", 10 | "/": "5a9376462faf605c1554e8d6ebfa381d", 11 | "manifest.json": "0357e5d6396e893fecbe47079619cc7a", 12 | "favicon.png": "5dcef449791fa27946b3d35ad8803796", 13 | "assets/FontManifest.json": "01700ba55b08a6141f33e168c4a6c22f", 14 | "assets/packages/flutter_markdown/assets/logo.png": "67642a0b80f3d50277c44cde8f450e50", 15 | "assets/packages/cupertino_icons/assets/CupertinoIcons.ttf": "115e937bb829a890521f72d2e664b632", 16 | "assets/fonts/MaterialIcons-Regular.ttf": "56d3ffdef7a25659eab6a68a3fbfaf16", 17 | "assets/NOTICES": "2449f35bbfdb2678c0026e4be913ec2d", 18 | "assets/assets/images/tree.png": "23aecd336bd5996c56185f4a74559e7b", 19 | "assets/assets/images/notepad.png": "f9b2477f03f7dda9132cfa284fcaa349", 20 | "assets/assets/images/hack20_logo.png": "ef39b71dbee7b71c3ec22d04f13e67b0", 21 | "assets/assets/images/browser.png": "b8e5723076a74ca155c3f4981d7c027b", 22 | "assets/assets/images/maps.png": "cf341edab1369267b8583740a45154a7", 23 | "assets/assets/images/windows.png": "506ac60fc7b51fb35d66d6ef2a4da9fc", 24 | "assets/assets/images/about.png": "21cda7303498be873128c37a5abae4db", 25 | "assets/assets/images/hack20.png": "d1e6ff1a5f9e063d2dd89c0b9527d13d", 26 | "assets/assets/images/application.png": "284b15ed4fca400d6f4497a357241151", 27 | "assets/assets/images/calculator.png": "5978dba58d169508c4a58d4b3a84014f", 28 | "assets/AssetManifest.json": "1f680ac88e3e07de57403750c7404700" 29 | }; 30 | 31 | // The application shell files that are downloaded before a service worker can 32 | // start. 33 | const CORE = [ 34 | "/", 35 | "main.dart.js", 36 | "index.html", 37 | "assets/LICENSE", 38 | "assets/AssetManifest.json", 39 | "assets/FontManifest.json"]; 40 | 41 | // During install, the TEMP cache is populated with the application shell files. 42 | self.addEventListener("install", (event) => { 43 | return event.waitUntil( 44 | caches.open(TEMP).then((cache) => { 45 | // Provide a no-cache param to ensure the latest version is downloaded. 46 | return cache.addAll(CORE.map((value) => new Request(value, {'cache': 'no-cache'}))); 47 | }) 48 | ); 49 | }); 50 | 51 | // During activate, the cache is populated with the temp files downloaded in 52 | // install. If this service worker is upgrading from one with a saved 53 | // MANIFEST, then use this to retain unchanged resource files. 54 | self.addEventListener("activate", function(event) { 55 | return event.waitUntil(async function() { 56 | try { 57 | var contentCache = await caches.open(CACHE_NAME); 58 | var tempCache = await caches.open(TEMP); 59 | var manifestCache = await caches.open(MANIFEST); 60 | var manifest = await manifestCache.match('manifest'); 61 | 62 | // When there is no prior manifest, clear the entire cache. 63 | if (!manifest) { 64 | await caches.delete(CACHE_NAME); 65 | contentCache = await caches.open(CACHE_NAME); 66 | for (var request of await tempCache.keys()) { 67 | var response = await tempCache.match(request); 68 | await contentCache.put(request, response); 69 | } 70 | await caches.delete(TEMP); 71 | // Save the manifest to make future upgrades efficient. 72 | await manifestCache.put('manifest', new Response(JSON.stringify(RESOURCES))); 73 | return; 74 | } 75 | 76 | var oldManifest = await manifest.json(); 77 | var origin = self.location.origin; 78 | for (var request of await contentCache.keys()) { 79 | var key = request.url.substring(origin.length + 1); 80 | if (key == "") { 81 | key = "/"; 82 | } 83 | // If a resource from the old manifest is not in the new cache, or if 84 | // the MD5 sum has changed, delete it. Otherwise the resource is left 85 | // in the cache and can be reused by the new service worker. 86 | if (!RESOURCES[key] || RESOURCES[key] != oldManifest[key]) { 87 | await contentCache.delete(request); 88 | } 89 | } 90 | // Populate the cache with the app shell TEMP files, potentially overwriting 91 | // cache files preserved above. 92 | for (var request of await tempCache.keys()) { 93 | var response = await tempCache.match(request); 94 | await contentCache.put(request, response); 95 | } 96 | await caches.delete(TEMP); 97 | // Save the manifest to make future upgrades efficient. 98 | await manifestCache.put('manifest', new Response(JSON.stringify(RESOURCES))); 99 | return; 100 | } catch (err) { 101 | // On an unhandled exception the state of the cache cannot be guaranteed. 102 | console.error('Failed to upgrade service worker: ' + err); 103 | await caches.delete(CACHE_NAME); 104 | await caches.delete(TEMP); 105 | await caches.delete(MANIFEST); 106 | } 107 | }()); 108 | }); 109 | 110 | // The fetch handler redirects requests for RESOURCE files to the service 111 | // worker cache. 112 | self.addEventListener("fetch", (event) => { 113 | var origin = self.location.origin; 114 | var key = event.request.url.substring(origin.length + 1); 115 | // Redirect URLs to the index.html 116 | if (event.request.url == origin || event.request.url.startsWith(origin + '/#')) { 117 | key = '/'; 118 | } 119 | // If the URL is not the the RESOURCE list, skip the cache. 120 | if (!RESOURCES[key]) { 121 | return event.respondWith(fetch(event.request)); 122 | } 123 | event.respondWith(caches.open(CACHE_NAME) 124 | .then((cache) => { 125 | return cache.match(event.request).then((response) => { 126 | // Either respond with the cached resource, or perform a fetch and 127 | // lazily populate the cache. Ensure the resources are not cached 128 | // by the browser for longer than the service worker expects. 129 | var modifiedRequest = new Request(event.request, {'cache': 'no-cache'}); 130 | return response || fetch(modifiedRequest).then((response) => { 131 | cache.put(event.request, response.clone()); 132 | return response; 133 | }); 134 | }) 135 | }) 136 | ); 137 | }); 138 | 139 | self.addEventListener('message', (event) => { 140 | // SkipWaiting can be used to immediately activate a waiting service worker. 141 | // This will also require a page refresh triggered by the main worker. 142 | if (event.message == 'skipWaiting') { 143 | return self.skipWaiting(); 144 | } 145 | 146 | if (event.message = 'downloadOffline') { 147 | downloadOffline(); 148 | } 149 | }); 150 | 151 | // Download offline will check the RESOURCES for all files not in the cache 152 | // and populate them. 153 | async function downloadOffline() { 154 | var resources = []; 155 | var contentCache = await caches.open(CACHE_NAME); 156 | var currentContent = {}; 157 | for (var request of await contentCache.keys()) { 158 | var key = request.url.substring(origin.length + 1); 159 | if (key == "") { 160 | key = "/"; 161 | } 162 | currentContent[key] = true; 163 | } 164 | for (var resourceKey in Object.keys(RESOURCES)) { 165 | if (!currentContent[resourceKey]) { 166 | resources.add(resourceKey); 167 | } 168 | } 169 | return Cache.addAll(resources); 170 | } 171 | -------------------------------------------------------------------------------- /lib/models/application.freezed.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | // ignore_for_file: deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named 3 | 4 | part of 'application.dart'; 5 | 6 | // ************************************************************************** 7 | // FreezedGenerator 8 | // ************************************************************************** 9 | 10 | T _$identity(T value) => value; 11 | 12 | class _$ApplicationTearOff { 13 | const _$ApplicationTearOff(); 14 | 15 | _Application call( 16 | {int processId, 17 | String processName, 18 | String label, 19 | String image, 20 | bool selected, 21 | bool maximized, 22 | bool minimized}) { 23 | return _Application( 24 | processId: processId, 25 | processName: processName, 26 | label: label, 27 | image: image, 28 | selected: selected, 29 | maximized: maximized, 30 | minimized: minimized, 31 | ); 32 | } 33 | } 34 | 35 | // ignore: unused_element 36 | const $Application = _$ApplicationTearOff(); 37 | 38 | mixin _$Application { 39 | int get processId; 40 | String get processName; 41 | String get label; 42 | String get image; 43 | bool get selected; 44 | bool get maximized; 45 | bool get minimized; 46 | 47 | $ApplicationCopyWith get copyWith; 48 | } 49 | 50 | abstract class $ApplicationCopyWith<$Res> { 51 | factory $ApplicationCopyWith( 52 | Application value, $Res Function(Application) then) = 53 | _$ApplicationCopyWithImpl<$Res>; 54 | $Res call( 55 | {int processId, 56 | String processName, 57 | String label, 58 | String image, 59 | bool selected, 60 | bool maximized, 61 | bool minimized}); 62 | } 63 | 64 | class _$ApplicationCopyWithImpl<$Res> implements $ApplicationCopyWith<$Res> { 65 | _$ApplicationCopyWithImpl(this._value, this._then); 66 | 67 | final Application _value; 68 | // ignore: unused_field 69 | final $Res Function(Application) _then; 70 | 71 | @override 72 | $Res call({ 73 | Object processId = freezed, 74 | Object processName = freezed, 75 | Object label = freezed, 76 | Object image = freezed, 77 | Object selected = freezed, 78 | Object maximized = freezed, 79 | Object minimized = freezed, 80 | }) { 81 | return _then(_value.copyWith( 82 | processId: processId == freezed ? _value.processId : processId as int, 83 | processName: 84 | processName == freezed ? _value.processName : processName as String, 85 | label: label == freezed ? _value.label : label as String, 86 | image: image == freezed ? _value.image : image as String, 87 | selected: selected == freezed ? _value.selected : selected as bool, 88 | maximized: maximized == freezed ? _value.maximized : maximized as bool, 89 | minimized: minimized == freezed ? _value.minimized : minimized as bool, 90 | )); 91 | } 92 | } 93 | 94 | abstract class _$ApplicationCopyWith<$Res> 95 | implements $ApplicationCopyWith<$Res> { 96 | factory _$ApplicationCopyWith( 97 | _Application value, $Res Function(_Application) then) = 98 | __$ApplicationCopyWithImpl<$Res>; 99 | @override 100 | $Res call( 101 | {int processId, 102 | String processName, 103 | String label, 104 | String image, 105 | bool selected, 106 | bool maximized, 107 | bool minimized}); 108 | } 109 | 110 | class __$ApplicationCopyWithImpl<$Res> extends _$ApplicationCopyWithImpl<$Res> 111 | implements _$ApplicationCopyWith<$Res> { 112 | __$ApplicationCopyWithImpl( 113 | _Application _value, $Res Function(_Application) _then) 114 | : super(_value, (v) => _then(v as _Application)); 115 | 116 | @override 117 | _Application get _value => super._value as _Application; 118 | 119 | @override 120 | $Res call({ 121 | Object processId = freezed, 122 | Object processName = freezed, 123 | Object label = freezed, 124 | Object image = freezed, 125 | Object selected = freezed, 126 | Object maximized = freezed, 127 | Object minimized = freezed, 128 | }) { 129 | return _then(_Application( 130 | processId: processId == freezed ? _value.processId : processId as int, 131 | processName: 132 | processName == freezed ? _value.processName : processName as String, 133 | label: label == freezed ? _value.label : label as String, 134 | image: image == freezed ? _value.image : image as String, 135 | selected: selected == freezed ? _value.selected : selected as bool, 136 | maximized: maximized == freezed ? _value.maximized : maximized as bool, 137 | minimized: minimized == freezed ? _value.minimized : minimized as bool, 138 | )); 139 | } 140 | } 141 | 142 | class _$_Application with DiagnosticableTreeMixin implements _Application { 143 | _$_Application( 144 | {this.processId, 145 | this.processName, 146 | this.label, 147 | this.image, 148 | this.selected, 149 | this.maximized, 150 | this.minimized}); 151 | 152 | @override 153 | final int processId; 154 | @override 155 | final String processName; 156 | @override 157 | final String label; 158 | @override 159 | final String image; 160 | @override 161 | final bool selected; 162 | @override 163 | final bool maximized; 164 | @override 165 | final bool minimized; 166 | 167 | @override 168 | String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { 169 | return 'Application(processId: $processId, processName: $processName, label: $label, image: $image, selected: $selected, maximized: $maximized, minimized: $minimized)'; 170 | } 171 | 172 | @override 173 | void debugFillProperties(DiagnosticPropertiesBuilder properties) { 174 | super.debugFillProperties(properties); 175 | properties 176 | ..add(DiagnosticsProperty('type', 'Application')) 177 | ..add(DiagnosticsProperty('processId', processId)) 178 | ..add(DiagnosticsProperty('processName', processName)) 179 | ..add(DiagnosticsProperty('label', label)) 180 | ..add(DiagnosticsProperty('image', image)) 181 | ..add(DiagnosticsProperty('selected', selected)) 182 | ..add(DiagnosticsProperty('maximized', maximized)) 183 | ..add(DiagnosticsProperty('minimized', minimized)); 184 | } 185 | 186 | @override 187 | bool operator ==(dynamic other) { 188 | return identical(this, other) || 189 | (other is _Application && 190 | (identical(other.processId, processId) || 191 | const DeepCollectionEquality() 192 | .equals(other.processId, processId)) && 193 | (identical(other.processName, processName) || 194 | const DeepCollectionEquality() 195 | .equals(other.processName, processName)) && 196 | (identical(other.label, label) || 197 | const DeepCollectionEquality().equals(other.label, label)) && 198 | (identical(other.image, image) || 199 | const DeepCollectionEquality().equals(other.image, image)) && 200 | (identical(other.selected, selected) || 201 | const DeepCollectionEquality() 202 | .equals(other.selected, selected)) && 203 | (identical(other.maximized, maximized) || 204 | const DeepCollectionEquality() 205 | .equals(other.maximized, maximized)) && 206 | (identical(other.minimized, minimized) || 207 | const DeepCollectionEquality() 208 | .equals(other.minimized, minimized))); 209 | } 210 | 211 | @override 212 | int get hashCode => 213 | runtimeType.hashCode ^ 214 | const DeepCollectionEquality().hash(processId) ^ 215 | const DeepCollectionEquality().hash(processName) ^ 216 | const DeepCollectionEquality().hash(label) ^ 217 | const DeepCollectionEquality().hash(image) ^ 218 | const DeepCollectionEquality().hash(selected) ^ 219 | const DeepCollectionEquality().hash(maximized) ^ 220 | const DeepCollectionEquality().hash(minimized); 221 | 222 | @override 223 | _$ApplicationCopyWith<_Application> get copyWith => 224 | __$ApplicationCopyWithImpl<_Application>(this, _$identity); 225 | } 226 | 227 | abstract class _Application implements Application { 228 | factory _Application( 229 | {int processId, 230 | String processName, 231 | String label, 232 | String image, 233 | bool selected, 234 | bool maximized, 235 | bool minimized}) = _$_Application; 236 | 237 | @override 238 | int get processId; 239 | @override 240 | String get processName; 241 | @override 242 | String get label; 243 | @override 244 | String get image; 245 | @override 246 | bool get selected; 247 | @override 248 | bool get maximized; 249 | @override 250 | bool get minimized; 251 | @override 252 | _$ApplicationCopyWith<_Application> get copyWith; 253 | } 254 | -------------------------------------------------------------------------------- /lib/widgets/window.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:retro95/apps/about/about.dart'; 3 | import 'package:retro95/apps/bluescreen/dummy.dart'; 4 | import 'package:retro95/apps/browser/browser.dart'; 5 | import 'package:retro95/apps/calculator/calculator.dart'; 6 | import 'package:retro95/apps/counter/counter.dart'; 7 | import 'package:retro95/apps/flutter95/flutter95.dart'; 8 | import 'package:retro95/apps/maps/maps.dart'; 9 | import 'package:retro95/apps/notepad/notepad.dart'; 10 | import 'package:retro95/models/application.dart'; 11 | import 'package:retro95/widgets/custom_scaffold95.dart'; 12 | import 'package:custom_navigator/custom_navigator.dart'; 13 | 14 | class Window extends StatefulWidget { 15 | const Window({ 16 | Key key, 17 | this.app, 18 | this.height = 600, 19 | this.width = 600, 20 | this.onCloseApp, 21 | this.constraints, 22 | this.onMinizeApp, 23 | }) : super(key: key); 24 | 25 | final Application app; 26 | final double height; 27 | final double width; 28 | final Function onCloseApp; 29 | final Function onMinizeApp; 30 | final BoxConstraints constraints; 31 | 32 | @override 33 | _WindowState createState() => _WindowState(); 34 | } 35 | 36 | class _WindowState extends State { 37 | Application _app; 38 | 39 | @override 40 | void initState() { 41 | super.initState(); 42 | 43 | _app = widget.app; 44 | } 45 | 46 | Widget createApp(String processName, int applicationId) { 47 | switch (processName) { 48 | case 'counter-app': 49 | return CounterApp(); 50 | case 'dummy-app': 51 | return DummyPage(); 52 | case 'flutter95-app': 53 | return Flutter95Screen(); 54 | case 'browser-app': 55 | return Browser(); 56 | case 'notepad-app': 57 | return Notepad(); 58 | case 'maps-app': 59 | return Maps(); 60 | case 'calculator-app': 61 | return Calculator(); 62 | case 'about-app': 63 | return About(); 64 | default: 65 | return CounterApp(); 66 | } 67 | } 68 | 69 | void onMaximize() { 70 | setState(() { 71 | _app = _app.copyWith(maximized: !_app.maximized); 72 | }); 73 | } 74 | 75 | void onMinimize() { 76 | setState(() { 77 | _app = _app.copyWith(minimized: !_app.minimized); 78 | }); 79 | } 80 | 81 | @override 82 | Widget build(BuildContext context) { 83 | GlobalKey navigatorKey = GlobalKey(); 84 | 85 | return Container( 86 | child: GestureDetector( 87 | onTap: () { 88 | print(_app.processId); 89 | }, 90 | child: ResizebleWidget( 91 | child: CustomScaffold95( 92 | title: _app.label, 93 | headerImage: Image.asset(widget.app.image), 94 | body: CustomNavigator( 95 | navigatorKey: navigatorKey, 96 | pageRoute: PageRoutes.materialPageRoute, 97 | home: createApp(widget.app.processName, widget.app.processId), 98 | ), 99 | onClose: () => widget.onCloseApp(_app.processId), 100 | onMaximize: onMaximize, 101 | onMinimize: null, 102 | ), 103 | height: _app.maximized ? widget.constraints.maxHeight : widget.height, 104 | width: _app.maximized ? widget.constraints.maxWidth : widget.width, 105 | // maximize: _app.maximized, 106 | visible: _app.minimized ? false : true, 107 | // constraints: widget.constraints, 108 | ), 109 | ), 110 | ); 111 | } 112 | } 113 | 114 | class ResizebleWidget extends StatefulWidget { 115 | ResizebleWidget({ 116 | this.child, 117 | this.visible = true, 118 | this.key, 119 | this.height = 600, 120 | this.width = 600, 121 | // this.constraints, 122 | // this.maximize, 123 | }); 124 | 125 | final Widget child; 126 | final bool visible; 127 | final Key key; 128 | final double height; 129 | final double width; 130 | // final bool maximize; 131 | // final BoxConstraints constraints; 132 | @override 133 | _ResizebleWidgetState createState() => _ResizebleWidgetState(); 134 | } 135 | 136 | const ballDiameter = 10.0; 137 | const lineWidth = 10.0; 138 | 139 | class _ResizebleWidgetState extends State { 140 | double top = 0; 141 | double left = 0; 142 | double height = 600; 143 | double width = 600; 144 | 145 | @override 146 | void initState() { 147 | height = widget.height; 148 | width = widget.width; 149 | super.initState(); 150 | } 151 | 152 | @override 153 | void didUpdateWidget(ResizebleWidget oldWidget) { 154 | setState(() { 155 | height = widget.height; 156 | width = widget.width; 157 | }); 158 | super.didUpdateWidget(oldWidget); 159 | } 160 | 161 | @override 162 | Widget build(BuildContext context) { 163 | return Visibility( 164 | visible: widget.visible, 165 | child: Stack( 166 | children: [ 167 | Positioned( 168 | top: top, 169 | left: left, 170 | child: Container( 171 | height: height, 172 | width: width, 173 | child: widget.child, 174 | ), 175 | ), 176 | // top left 177 | Positioned( 178 | top: top - ballDiameter / 2, 179 | left: left - ballDiameter / 2, 180 | child: ManipulatingBall( 181 | onDrag: (dx, dy) { 182 | var mid = (dx + dy) / 2; 183 | var newHeight = height - 2 * mid; 184 | var newWidth = width - 2 * mid; 185 | 186 | setState(() { 187 | height = newHeight > 0 ? newHeight : 0; 188 | width = newWidth > 0 ? newWidth : 0; 189 | top = top + mid; 190 | left = left + mid; 191 | }); 192 | }, 193 | ), 194 | ), 195 | // top middle 196 | Positioned( 197 | top: top - ballDiameter / 2, 198 | left: left + ballDiameter, 199 | child: ManipulatingLine( 200 | width: width - ballDiameter * 2, 201 | onDrag: (dx, dy) { 202 | var newHeight = height - dy; 203 | 204 | setState(() { 205 | height = newHeight > 0 ? newHeight : 0; 206 | top = top + dy; 207 | }); 208 | }, 209 | ), 210 | ), 211 | // top right 212 | Positioned( 213 | top: top - ballDiameter / 2, 214 | left: left + width - ballDiameter / 2, 215 | child: ManipulatingBall( 216 | onDrag: (dx, dy) { 217 | var mid = (dx + (dy * -1)) / 2; 218 | 219 | var newHeight = height + 2 * mid; 220 | var newWidth = width + 2 * mid; 221 | 222 | setState(() { 223 | height = newHeight > 0 ? newHeight : 0; 224 | width = newWidth > 0 ? newWidth : 0; 225 | top = top - mid; 226 | left = left - mid; 227 | }); 228 | }, 229 | ), 230 | ), 231 | // center right 232 | Positioned( 233 | top: top + ballDiameter, 234 | left: left + width - ballDiameter / 2, 235 | child: ManipulatingLine( 236 | height: height - ballDiameter, 237 | onDrag: (dx, dy) { 238 | var newWidth = width + dx; 239 | 240 | setState(() { 241 | width = newWidth > 0 ? newWidth : 0; 242 | }); 243 | }, 244 | ), 245 | ), 246 | // bottom right 247 | Positioned( 248 | top: top + height - ballDiameter / 2, 249 | left: left + width - ballDiameter / 2, 250 | child: ManipulatingBall( 251 | onDrag: (dx, dy) { 252 | var mid = (dx + dy) / 2; 253 | 254 | var newHeight = height + 2 * mid; 255 | var newWidth = width + 2 * mid; 256 | 257 | setState(() { 258 | height = newHeight > 0 ? newHeight : 0; 259 | width = newWidth > 0 ? newWidth : 0; 260 | top = top - mid; 261 | left = left - mid; 262 | }); 263 | }, 264 | ), 265 | ), 266 | // bottom center 267 | Positioned( 268 | top: top + height - ballDiameter / 2, 269 | left: left - ballDiameter / 2, 270 | child: ManipulatingLine( 271 | width: width, 272 | onDrag: (dx, dy) { 273 | var newHeight = height + dy; 274 | 275 | setState(() { 276 | height = newHeight > 0 ? newHeight : 0; 277 | }); 278 | }, 279 | ), 280 | ), 281 | // bottom left 282 | Positioned( 283 | top: top + height - ballDiameter / 2, 284 | left: left - ballDiameter / 2, 285 | child: ManipulatingBall( 286 | onDrag: (dx, dy) { 287 | var mid = ((dx * -1) + dy) / 2; 288 | 289 | var newHeight = height + 2 * mid; 290 | var newWidth = width + 2 * mid; 291 | 292 | setState(() { 293 | height = newHeight > 0 ? newHeight : 0; 294 | width = newWidth > 0 ? newWidth : 0; 295 | top = top - mid; 296 | left = left - mid; 297 | }); 298 | }, 299 | ), 300 | ), 301 | //left center 302 | Positioned( 303 | top: top + ballDiameter / 2, 304 | left: left, 305 | child: ManipulatingLine( 306 | height: height - ballDiameter, 307 | onDrag: (dx, dy) { 308 | var newWidth = width - dx; 309 | 310 | setState(() { 311 | width = newWidth > 0 ? newWidth : 0; 312 | left = left + dx; 313 | }); 314 | }, 315 | ), 316 | ), 317 | // center center 318 | Positioned( 319 | top: top + ballDiameter / 2, 320 | left: left, 321 | child: ManipulatingLine( 322 | width: width - 100, 323 | height: 30, 324 | onDrag: (dx, dy) { 325 | setState(() { 326 | top = top + dy; 327 | left = left + dx; 328 | }); 329 | }, 330 | ), 331 | ), 332 | ], 333 | ), 334 | ); 335 | } 336 | } 337 | 338 | class ManipulatingBall extends StatefulWidget { 339 | ManipulatingBall({ 340 | Key key, 341 | this.onDrag, 342 | this.showGuidelines = false, 343 | }); 344 | 345 | final Function onDrag; 346 | 347 | final bool showGuidelines; 348 | 349 | @override 350 | _ManipulatingBallState createState() => _ManipulatingBallState(); 351 | } 352 | 353 | class _ManipulatingBallState extends State { 354 | double initX; 355 | double initY; 356 | 357 | _handleDrag(details) { 358 | setState(() { 359 | initX = details.globalPosition.dx; 360 | initY = details.globalPosition.dy; 361 | }); 362 | } 363 | 364 | _handleUpdate(details) { 365 | var dx = details.globalPosition.dx - initX; 366 | var dy = details.globalPosition.dy - initY; 367 | initX = details.globalPosition.dx; 368 | initY = details.globalPosition.dy; 369 | widget.onDrag(dx, dy); 370 | } 371 | 372 | @override 373 | Widget build(BuildContext context) { 374 | return GestureDetector( 375 | onPanStart: _handleDrag, 376 | onPanUpdate: _handleUpdate, 377 | child: Container( 378 | width: ballDiameter, 379 | height: ballDiameter, 380 | decoration: BoxDecoration( 381 | color: widget.showGuidelines ? Colors.red : null, 382 | shape: BoxShape.circle, 383 | ), 384 | ), 385 | ); 386 | } 387 | } 388 | 389 | class ManipulatingLine extends StatefulWidget { 390 | ManipulatingLine({ 391 | Key key, 392 | this.onDrag, 393 | this.width = lineWidth, 394 | this.height = lineWidth, 395 | this.showGuidelines = false, 396 | }); 397 | 398 | final Function onDrag; 399 | 400 | final double width; 401 | 402 | final double height; 403 | 404 | final bool showGuidelines; 405 | 406 | @override 407 | _ManipulatingLineState createState() => _ManipulatingLineState(); 408 | } 409 | 410 | class _ManipulatingLineState extends State { 411 | double initX; 412 | double initY; 413 | 414 | _handleDrag(details) { 415 | setState(() { 416 | initX = details.globalPosition.dx; 417 | initY = details.globalPosition.dy; 418 | }); 419 | } 420 | 421 | _handleUpdate(details) { 422 | var dx = details.globalPosition.dx - initX; 423 | var dy = details.globalPosition.dy - initY; 424 | initX = details.globalPosition.dx; 425 | initY = details.globalPosition.dy; 426 | widget.onDrag(dx, dy); 427 | } 428 | 429 | @override 430 | Widget build(BuildContext context) { 431 | return GestureDetector( 432 | onPanStart: _handleDrag, 433 | onPanUpdate: _handleUpdate, 434 | child: Container( 435 | height: widget.height, 436 | width: widget.width, 437 | decoration: BoxDecoration( 438 | color: widget.showGuidelines ? Colors.green.withOpacity(0.5) : null, 439 | ), 440 | ), 441 | ); 442 | } 443 | } 444 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | _fe_analyzer_shared: 5 | dependency: transitive 6 | description: 7 | name: _fe_analyzer_shared 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "4.0.0" 11 | analyzer: 12 | dependency: transitive 13 | description: 14 | name: analyzer 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "0.39.10" 18 | args: 19 | dependency: transitive 20 | description: 21 | name: args 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.6.0" 25 | async: 26 | dependency: transitive 27 | description: 28 | name: async 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.4.1" 32 | boolean_selector: 33 | dependency: transitive 34 | description: 35 | name: boolean_selector 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "2.0.0" 39 | build: 40 | dependency: transitive 41 | description: 42 | name: build 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.3.0" 46 | build_config: 47 | dependency: transitive 48 | description: 49 | name: build_config 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "0.4.2" 53 | build_daemon: 54 | dependency: transitive 55 | description: 56 | name: build_daemon 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.1.4" 60 | build_resolvers: 61 | dependency: transitive 62 | description: 63 | name: build_resolvers 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "1.3.9" 67 | build_runner: 68 | dependency: "direct dev" 69 | description: 70 | name: build_runner 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "1.10.0" 74 | build_runner_core: 75 | dependency: transitive 76 | description: 77 | name: build_runner_core 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "5.2.0" 81 | built_collection: 82 | dependency: transitive 83 | description: 84 | name: built_collection 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "4.3.2" 88 | built_value: 89 | dependency: transitive 90 | description: 91 | name: built_value 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "7.1.0" 95 | charcode: 96 | dependency: transitive 97 | description: 98 | name: charcode 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "1.1.3" 102 | checked_yaml: 103 | dependency: transitive 104 | description: 105 | name: checked_yaml 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "1.0.2" 109 | clock: 110 | dependency: transitive 111 | description: 112 | name: clock 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "1.0.1" 116 | code_builder: 117 | dependency: transitive 118 | description: 119 | name: code_builder 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "3.3.0" 123 | collection: 124 | dependency: transitive 125 | description: 126 | name: collection 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "1.14.12" 130 | convert: 131 | dependency: transitive 132 | description: 133 | name: convert 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "2.1.1" 137 | crypto: 138 | dependency: transitive 139 | description: 140 | name: crypto 141 | url: "https://pub.dartlang.org" 142 | source: hosted 143 | version: "2.1.5" 144 | csslib: 145 | dependency: transitive 146 | description: 147 | name: csslib 148 | url: "https://pub.dartlang.org" 149 | source: hosted 150 | version: "0.16.1" 151 | cupertino_icons: 152 | dependency: "direct main" 153 | description: 154 | name: cupertino_icons 155 | url: "https://pub.dartlang.org" 156 | source: hosted 157 | version: "0.1.3" 158 | custom_navigator: 159 | dependency: "direct main" 160 | description: 161 | name: custom_navigator 162 | url: "https://pub.dartlang.org" 163 | source: hosted 164 | version: "0.1.1" 165 | dart_style: 166 | dependency: transitive 167 | description: 168 | name: dart_style 169 | url: "https://pub.dartlang.org" 170 | source: hosted 171 | version: "1.3.6" 172 | easy_google_maps: 173 | dependency: "direct main" 174 | description: 175 | name: easy_google_maps 176 | url: "https://pub.dartlang.org" 177 | source: hosted 178 | version: "1.0.0+2" 179 | easy_web_view: 180 | dependency: "direct main" 181 | description: 182 | name: easy_web_view 183 | url: "https://pub.dartlang.org" 184 | source: hosted 185 | version: "1.2.0" 186 | equatable: 187 | dependency: transitive 188 | description: 189 | name: equatable 190 | url: "https://pub.dartlang.org" 191 | source: hosted 192 | version: "1.2.0" 193 | fake_async: 194 | dependency: transitive 195 | description: 196 | name: fake_async 197 | url: "https://pub.dartlang.org" 198 | source: hosted 199 | version: "1.1.0" 200 | fixnum: 201 | dependency: transitive 202 | description: 203 | name: fixnum 204 | url: "https://pub.dartlang.org" 205 | source: hosted 206 | version: "0.10.11" 207 | flutter: 208 | dependency: "direct main" 209 | description: flutter 210 | source: sdk 211 | version: "0.0.0" 212 | flutter95: 213 | dependency: "direct main" 214 | description: 215 | name: flutter95 216 | url: "https://pub.dartlang.org" 217 | source: hosted 218 | version: "0.0.7" 219 | flutter_markdown: 220 | dependency: transitive 221 | description: 222 | name: flutter_markdown 223 | url: "https://pub.dartlang.org" 224 | source: hosted 225 | version: "0.3.5" 226 | flutter_plugin_android_lifecycle: 227 | dependency: transitive 228 | description: 229 | name: flutter_plugin_android_lifecycle 230 | url: "https://pub.dartlang.org" 231 | source: hosted 232 | version: "1.0.8" 233 | flutter_test: 234 | dependency: "direct dev" 235 | description: flutter 236 | source: sdk 237 | version: "0.0.0" 238 | flutter_web_plugins: 239 | dependency: transitive 240 | description: flutter 241 | source: sdk 242 | version: "0.0.0" 243 | freezed: 244 | dependency: "direct dev" 245 | description: 246 | name: freezed 247 | url: "https://pub.dartlang.org" 248 | source: hosted 249 | version: "0.11.2" 250 | freezed_annotation: 251 | dependency: "direct main" 252 | description: 253 | name: freezed_annotation 254 | url: "https://pub.dartlang.org" 255 | source: hosted 256 | version: "0.11.0" 257 | geolocator: 258 | dependency: transitive 259 | description: 260 | name: geolocator 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "5.3.2+2" 264 | glob: 265 | dependency: transitive 266 | description: 267 | name: glob 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "1.2.0" 271 | google_api_availability: 272 | dependency: transitive 273 | description: 274 | name: google_api_availability 275 | url: "https://pub.dartlang.org" 276 | source: hosted 277 | version: "2.0.4" 278 | google_maps_flutter: 279 | dependency: transitive 280 | description: 281 | name: google_maps_flutter 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "0.5.28+1" 285 | google_maps_flutter_platform_interface: 286 | dependency: transitive 287 | description: 288 | name: google_maps_flutter_platform_interface 289 | url: "https://pub.dartlang.org" 290 | source: hosted 291 | version: "1.0.2" 292 | graphs: 293 | dependency: transitive 294 | description: 295 | name: graphs 296 | url: "https://pub.dartlang.org" 297 | source: hosted 298 | version: "0.2.0" 299 | html: 300 | dependency: transitive 301 | description: 302 | name: html 303 | url: "https://pub.dartlang.org" 304 | source: hosted 305 | version: "0.14.0+3" 306 | html2md: 307 | dependency: transitive 308 | description: 309 | name: html2md 310 | url: "https://pub.dartlang.org" 311 | source: hosted 312 | version: "0.5.1" 313 | http: 314 | dependency: transitive 315 | description: 316 | name: http 317 | url: "https://pub.dartlang.org" 318 | source: hosted 319 | version: "0.12.1" 320 | http_multi_server: 321 | dependency: transitive 322 | description: 323 | name: http_multi_server 324 | url: "https://pub.dartlang.org" 325 | source: hosted 326 | version: "2.2.0" 327 | http_parser: 328 | dependency: transitive 329 | description: 330 | name: http_parser 331 | url: "https://pub.dartlang.org" 332 | source: hosted 333 | version: "3.1.4" 334 | intl: 335 | dependency: "direct main" 336 | description: 337 | name: intl 338 | url: "https://pub.dartlang.org" 339 | source: hosted 340 | version: "0.16.1" 341 | io: 342 | dependency: transitive 343 | description: 344 | name: io 345 | url: "https://pub.dartlang.org" 346 | source: hosted 347 | version: "0.3.4" 348 | js: 349 | dependency: transitive 350 | description: 351 | name: js 352 | url: "https://pub.dartlang.org" 353 | source: hosted 354 | version: "0.6.2" 355 | json_annotation: 356 | dependency: transitive 357 | description: 358 | name: json_annotation 359 | url: "https://pub.dartlang.org" 360 | source: hosted 361 | version: "3.0.1" 362 | location_permissions: 363 | dependency: transitive 364 | description: 365 | name: location_permissions 366 | url: "https://pub.dartlang.org" 367 | source: hosted 368 | version: "3.0.0+1" 369 | logging: 370 | dependency: transitive 371 | description: 372 | name: logging 373 | url: "https://pub.dartlang.org" 374 | source: hosted 375 | version: "0.11.4" 376 | markdown: 377 | dependency: transitive 378 | description: 379 | name: markdown 380 | url: "https://pub.dartlang.org" 381 | source: hosted 382 | version: "2.1.5" 383 | matcher: 384 | dependency: transitive 385 | description: 386 | name: matcher 387 | url: "https://pub.dartlang.org" 388 | source: hosted 389 | version: "0.12.6" 390 | meta: 391 | dependency: transitive 392 | description: 393 | name: meta 394 | url: "https://pub.dartlang.org" 395 | source: hosted 396 | version: "1.1.8" 397 | mime: 398 | dependency: transitive 399 | description: 400 | name: mime 401 | url: "https://pub.dartlang.org" 402 | source: hosted 403 | version: "0.9.6+3" 404 | node_interop: 405 | dependency: transitive 406 | description: 407 | name: node_interop 408 | url: "https://pub.dartlang.org" 409 | source: hosted 410 | version: "1.1.1" 411 | node_io: 412 | dependency: transitive 413 | description: 414 | name: node_io 415 | url: "https://pub.dartlang.org" 416 | source: hosted 417 | version: "1.1.1" 418 | package_config: 419 | dependency: transitive 420 | description: 421 | name: package_config 422 | url: "https://pub.dartlang.org" 423 | source: hosted 424 | version: "1.9.3" 425 | path: 426 | dependency: transitive 427 | description: 428 | name: path 429 | url: "https://pub.dartlang.org" 430 | source: hosted 431 | version: "1.7.0" 432 | pedantic: 433 | dependency: transitive 434 | description: 435 | name: pedantic 436 | url: "https://pub.dartlang.org" 437 | source: hosted 438 | version: "1.9.0" 439 | platform_detect: 440 | dependency: transitive 441 | description: 442 | name: platform_detect 443 | url: "https://pub.dartlang.org" 444 | source: hosted 445 | version: "1.4.0" 446 | plugin_platform_interface: 447 | dependency: transitive 448 | description: 449 | name: plugin_platform_interface 450 | url: "https://pub.dartlang.org" 451 | source: hosted 452 | version: "1.0.2" 453 | pool: 454 | dependency: transitive 455 | description: 456 | name: pool 457 | url: "https://pub.dartlang.org" 458 | source: hosted 459 | version: "1.4.0" 460 | pub_semver: 461 | dependency: transitive 462 | description: 463 | name: pub_semver 464 | url: "https://pub.dartlang.org" 465 | source: hosted 466 | version: "1.4.4" 467 | pubspec_parse: 468 | dependency: transitive 469 | description: 470 | name: pubspec_parse 471 | url: "https://pub.dartlang.org" 472 | source: hosted 473 | version: "0.1.5" 474 | quiver: 475 | dependency: transitive 476 | description: 477 | name: quiver 478 | url: "https://pub.dartlang.org" 479 | source: hosted 480 | version: "2.1.3" 481 | reorderables: 482 | dependency: "direct main" 483 | description: 484 | name: reorderables 485 | url: "https://pub.dartlang.org" 486 | source: hosted 487 | version: "0.3.2" 488 | shelf: 489 | dependency: transitive 490 | description: 491 | name: shelf 492 | url: "https://pub.dartlang.org" 493 | source: hosted 494 | version: "0.7.7" 495 | shelf_web_socket: 496 | dependency: transitive 497 | description: 498 | name: shelf_web_socket 499 | url: "https://pub.dartlang.org" 500 | source: hosted 501 | version: "0.2.3" 502 | sky_engine: 503 | dependency: transitive 504 | description: flutter 505 | source: sdk 506 | version: "0.0.99" 507 | source_gen: 508 | dependency: transitive 509 | description: 510 | name: source_gen 511 | url: "https://pub.dartlang.org" 512 | source: hosted 513 | version: "0.9.5" 514 | source_span: 515 | dependency: transitive 516 | description: 517 | name: source_span 518 | url: "https://pub.dartlang.org" 519 | source: hosted 520 | version: "1.7.0" 521 | stack_trace: 522 | dependency: transitive 523 | description: 524 | name: stack_trace 525 | url: "https://pub.dartlang.org" 526 | source: hosted 527 | version: "1.9.3" 528 | stream_channel: 529 | dependency: transitive 530 | description: 531 | name: stream_channel 532 | url: "https://pub.dartlang.org" 533 | source: hosted 534 | version: "2.0.0" 535 | stream_transform: 536 | dependency: transitive 537 | description: 538 | name: stream_transform 539 | url: "https://pub.dartlang.org" 540 | source: hosted 541 | version: "1.2.0" 542 | string_scanner: 543 | dependency: transitive 544 | description: 545 | name: string_scanner 546 | url: "https://pub.dartlang.org" 547 | source: hosted 548 | version: "1.0.5" 549 | term_glyph: 550 | dependency: transitive 551 | description: 552 | name: term_glyph 553 | url: "https://pub.dartlang.org" 554 | source: hosted 555 | version: "1.1.0" 556 | test_api: 557 | dependency: transitive 558 | description: 559 | name: test_api 560 | url: "https://pub.dartlang.org" 561 | source: hosted 562 | version: "0.2.16" 563 | timing: 564 | dependency: transitive 565 | description: 566 | name: timing 567 | url: "https://pub.dartlang.org" 568 | source: hosted 569 | version: "0.1.1+2" 570 | typed_data: 571 | dependency: transitive 572 | description: 573 | name: typed_data 574 | url: "https://pub.dartlang.org" 575 | source: hosted 576 | version: "1.1.6" 577 | url_launcher: 578 | dependency: "direct main" 579 | description: 580 | name: url_launcher 581 | url: "https://pub.dartlang.org" 582 | source: hosted 583 | version: "5.4.11" 584 | url_launcher_macos: 585 | dependency: transitive 586 | description: 587 | name: url_launcher_macos 588 | url: "https://pub.dartlang.org" 589 | source: hosted 590 | version: "0.0.1+7" 591 | url_launcher_platform_interface: 592 | dependency: transitive 593 | description: 594 | name: url_launcher_platform_interface 595 | url: "https://pub.dartlang.org" 596 | source: hosted 597 | version: "1.0.7" 598 | url_launcher_web: 599 | dependency: transitive 600 | description: 601 | name: url_launcher_web 602 | url: "https://pub.dartlang.org" 603 | source: hosted 604 | version: "0.1.1+6" 605 | vector_math: 606 | dependency: transitive 607 | description: 608 | name: vector_math 609 | url: "https://pub.dartlang.org" 610 | source: hosted 611 | version: "2.0.8" 612 | watcher: 613 | dependency: transitive 614 | description: 615 | name: watcher 616 | url: "https://pub.dartlang.org" 617 | source: hosted 618 | version: "0.9.7+15" 619 | web_socket_channel: 620 | dependency: transitive 621 | description: 622 | name: web_socket_channel 623 | url: "https://pub.dartlang.org" 624 | source: hosted 625 | version: "1.1.0" 626 | webview_flutter: 627 | dependency: transitive 628 | description: 629 | name: webview_flutter 630 | url: "https://pub.dartlang.org" 631 | source: hosted 632 | version: "0.3.22+1" 633 | yaml: 634 | dependency: transitive 635 | description: 636 | name: yaml 637 | url: "https://pub.dartlang.org" 638 | source: hosted 639 | version: "2.2.1" 640 | sdks: 641 | dart: ">=2.7.0 <3.0.0" 642 | flutter: ">=1.16.3 <2.0.0" 643 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXCopyFilesBuildPhase section */ 19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 20 | isa = PBXCopyFilesBuildPhase; 21 | buildActionMask = 2147483647; 22 | dstPath = ""; 23 | dstSubfolderSpec = 10; 24 | files = ( 25 | ); 26 | name = "Embed Frameworks"; 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXCopyFilesBuildPhase section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | /* End PBXFileReference section */ 46 | 47 | /* Begin PBXFrameworksBuildPhase section */ 48 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 49 | isa = PBXFrameworksBuildPhase; 50 | buildActionMask = 2147483647; 51 | files = ( 52 | ); 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | /* End PBXFrameworksBuildPhase section */ 56 | 57 | /* Begin PBXGroup section */ 58 | 9740EEB11CF90186004384FC /* Flutter */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 65 | ); 66 | name = Flutter; 67 | sourceTree = ""; 68 | }; 69 | 97C146E51CF9000F007C117D = { 70 | isa = PBXGroup; 71 | children = ( 72 | 9740EEB11CF90186004384FC /* Flutter */, 73 | 97C146F01CF9000F007C117D /* Runner */, 74 | 97C146EF1CF9000F007C117D /* Products */, 75 | ); 76 | sourceTree = ""; 77 | }; 78 | 97C146EF1CF9000F007C117D /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 97C146EE1CF9000F007C117D /* Runner.app */, 82 | ); 83 | name = Products; 84 | sourceTree = ""; 85 | }; 86 | 97C146F01CF9000F007C117D /* Runner */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 92 | 97C147021CF9000F007C117D /* Info.plist */, 93 | 97C146F11CF9000F007C117D /* Supporting Files */, 94 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 95 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 96 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 97 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 98 | ); 99 | path = Runner; 100 | sourceTree = ""; 101 | }; 102 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | ); 106 | name = "Supporting Files"; 107 | sourceTree = ""; 108 | }; 109 | /* End PBXGroup section */ 110 | 111 | /* Begin PBXNativeTarget section */ 112 | 97C146ED1CF9000F007C117D /* Runner */ = { 113 | isa = PBXNativeTarget; 114 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 115 | buildPhases = ( 116 | 9740EEB61CF901F6004384FC /* Run Script */, 117 | 97C146EA1CF9000F007C117D /* Sources */, 118 | 97C146EB1CF9000F007C117D /* Frameworks */, 119 | 97C146EC1CF9000F007C117D /* Resources */, 120 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 121 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 122 | ); 123 | buildRules = ( 124 | ); 125 | dependencies = ( 126 | ); 127 | name = Runner; 128 | productName = Runner; 129 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 130 | productType = "com.apple.product-type.application"; 131 | }; 132 | /* End PBXNativeTarget section */ 133 | 134 | /* Begin PBXProject section */ 135 | 97C146E61CF9000F007C117D /* Project object */ = { 136 | isa = PBXProject; 137 | attributes = { 138 | LastUpgradeCheck = 1020; 139 | ORGANIZATIONNAME = ""; 140 | TargetAttributes = { 141 | 97C146ED1CF9000F007C117D = { 142 | CreatedOnToolsVersion = 7.3.1; 143 | LastSwiftMigration = 1100; 144 | }; 145 | }; 146 | }; 147 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 148 | compatibilityVersion = "Xcode 9.3"; 149 | developmentRegion = en; 150 | hasScannedForEncodings = 0; 151 | knownRegions = ( 152 | en, 153 | Base, 154 | ); 155 | mainGroup = 97C146E51CF9000F007C117D; 156 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 157 | projectDirPath = ""; 158 | projectRoot = ""; 159 | targets = ( 160 | 97C146ED1CF9000F007C117D /* Runner */, 161 | ); 162 | }; 163 | /* End PBXProject section */ 164 | 165 | /* Begin PBXResourcesBuildPhase section */ 166 | 97C146EC1CF9000F007C117D /* Resources */ = { 167 | isa = PBXResourcesBuildPhase; 168 | buildActionMask = 2147483647; 169 | files = ( 170 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 171 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 172 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 173 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 174 | ); 175 | runOnlyForDeploymentPostprocessing = 0; 176 | }; 177 | /* End PBXResourcesBuildPhase section */ 178 | 179 | /* Begin PBXShellScriptBuildPhase section */ 180 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 181 | isa = PBXShellScriptBuildPhase; 182 | buildActionMask = 2147483647; 183 | files = ( 184 | ); 185 | inputPaths = ( 186 | ); 187 | name = "Thin Binary"; 188 | outputPaths = ( 189 | ); 190 | runOnlyForDeploymentPostprocessing = 0; 191 | shellPath = /bin/sh; 192 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 193 | }; 194 | 9740EEB61CF901F6004384FC /* Run Script */ = { 195 | isa = PBXShellScriptBuildPhase; 196 | buildActionMask = 2147483647; 197 | files = ( 198 | ); 199 | inputPaths = ( 200 | ); 201 | name = "Run Script"; 202 | outputPaths = ( 203 | ); 204 | runOnlyForDeploymentPostprocessing = 0; 205 | shellPath = /bin/sh; 206 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 207 | }; 208 | /* End PBXShellScriptBuildPhase section */ 209 | 210 | /* Begin PBXSourcesBuildPhase section */ 211 | 97C146EA1CF9000F007C117D /* Sources */ = { 212 | isa = PBXSourcesBuildPhase; 213 | buildActionMask = 2147483647; 214 | files = ( 215 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 216 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 217 | ); 218 | runOnlyForDeploymentPostprocessing = 0; 219 | }; 220 | /* End PBXSourcesBuildPhase section */ 221 | 222 | /* Begin PBXVariantGroup section */ 223 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 224 | isa = PBXVariantGroup; 225 | children = ( 226 | 97C146FB1CF9000F007C117D /* Base */, 227 | ); 228 | name = Main.storyboard; 229 | sourceTree = ""; 230 | }; 231 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 232 | isa = PBXVariantGroup; 233 | children = ( 234 | 97C147001CF9000F007C117D /* Base */, 235 | ); 236 | name = LaunchScreen.storyboard; 237 | sourceTree = ""; 238 | }; 239 | /* End PBXVariantGroup section */ 240 | 241 | /* Begin XCBuildConfiguration section */ 242 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 243 | isa = XCBuildConfiguration; 244 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 245 | buildSettings = { 246 | ALWAYS_SEARCH_USER_PATHS = NO; 247 | CLANG_ANALYZER_NONNULL = YES; 248 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 249 | CLANG_CXX_LIBRARY = "libc++"; 250 | CLANG_ENABLE_MODULES = YES; 251 | CLANG_ENABLE_OBJC_ARC = YES; 252 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 253 | CLANG_WARN_BOOL_CONVERSION = YES; 254 | CLANG_WARN_COMMA = YES; 255 | CLANG_WARN_CONSTANT_CONVERSION = YES; 256 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 257 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 258 | CLANG_WARN_EMPTY_BODY = YES; 259 | CLANG_WARN_ENUM_CONVERSION = YES; 260 | CLANG_WARN_INFINITE_RECURSION = YES; 261 | CLANG_WARN_INT_CONVERSION = YES; 262 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 263 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 264 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 265 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 266 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 267 | CLANG_WARN_STRICT_PROTOTYPES = YES; 268 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 269 | CLANG_WARN_UNREACHABLE_CODE = YES; 270 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 271 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 272 | COPY_PHASE_STRIP = NO; 273 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 274 | ENABLE_NS_ASSERTIONS = NO; 275 | ENABLE_STRICT_OBJC_MSGSEND = YES; 276 | GCC_C_LANGUAGE_STANDARD = gnu99; 277 | GCC_NO_COMMON_BLOCKS = YES; 278 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 279 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 280 | GCC_WARN_UNDECLARED_SELECTOR = YES; 281 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 282 | GCC_WARN_UNUSED_FUNCTION = YES; 283 | GCC_WARN_UNUSED_VARIABLE = YES; 284 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 285 | MTL_ENABLE_DEBUG_INFO = NO; 286 | SDKROOT = iphoneos; 287 | SUPPORTED_PLATFORMS = iphoneos; 288 | TARGETED_DEVICE_FAMILY = "1,2"; 289 | VALIDATE_PRODUCT = YES; 290 | }; 291 | name = Profile; 292 | }; 293 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 294 | isa = XCBuildConfiguration; 295 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 296 | buildSettings = { 297 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 298 | CLANG_ENABLE_MODULES = YES; 299 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 300 | ENABLE_BITCODE = NO; 301 | FRAMEWORK_SEARCH_PATHS = ( 302 | "$(inherited)", 303 | "$(PROJECT_DIR)/Flutter", 304 | ); 305 | INFOPLIST_FILE = Runner/Info.plist; 306 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 307 | LIBRARY_SEARCH_PATHS = ( 308 | "$(inherited)", 309 | "$(PROJECT_DIR)/Flutter", 310 | ); 311 | PRODUCT_BUNDLE_IDENTIFIER = com.example.retro95; 312 | PRODUCT_NAME = "$(TARGET_NAME)"; 313 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 314 | SWIFT_VERSION = 5.0; 315 | VERSIONING_SYSTEM = "apple-generic"; 316 | }; 317 | name = Profile; 318 | }; 319 | 97C147031CF9000F007C117D /* Debug */ = { 320 | isa = XCBuildConfiguration; 321 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 322 | buildSettings = { 323 | ALWAYS_SEARCH_USER_PATHS = NO; 324 | CLANG_ANALYZER_NONNULL = YES; 325 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 326 | CLANG_CXX_LIBRARY = "libc++"; 327 | CLANG_ENABLE_MODULES = YES; 328 | CLANG_ENABLE_OBJC_ARC = YES; 329 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 330 | CLANG_WARN_BOOL_CONVERSION = YES; 331 | CLANG_WARN_COMMA = YES; 332 | CLANG_WARN_CONSTANT_CONVERSION = YES; 333 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 334 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 335 | CLANG_WARN_EMPTY_BODY = YES; 336 | CLANG_WARN_ENUM_CONVERSION = YES; 337 | CLANG_WARN_INFINITE_RECURSION = YES; 338 | CLANG_WARN_INT_CONVERSION = YES; 339 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 340 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 341 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 342 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 343 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 344 | CLANG_WARN_STRICT_PROTOTYPES = YES; 345 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 346 | CLANG_WARN_UNREACHABLE_CODE = YES; 347 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 348 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 349 | COPY_PHASE_STRIP = NO; 350 | DEBUG_INFORMATION_FORMAT = dwarf; 351 | ENABLE_STRICT_OBJC_MSGSEND = YES; 352 | ENABLE_TESTABILITY = YES; 353 | GCC_C_LANGUAGE_STANDARD = gnu99; 354 | GCC_DYNAMIC_NO_PIC = NO; 355 | GCC_NO_COMMON_BLOCKS = YES; 356 | GCC_OPTIMIZATION_LEVEL = 0; 357 | GCC_PREPROCESSOR_DEFINITIONS = ( 358 | "DEBUG=1", 359 | "$(inherited)", 360 | ); 361 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 362 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 363 | GCC_WARN_UNDECLARED_SELECTOR = YES; 364 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 365 | GCC_WARN_UNUSED_FUNCTION = YES; 366 | GCC_WARN_UNUSED_VARIABLE = YES; 367 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 368 | MTL_ENABLE_DEBUG_INFO = YES; 369 | ONLY_ACTIVE_ARCH = YES; 370 | SDKROOT = iphoneos; 371 | TARGETED_DEVICE_FAMILY = "1,2"; 372 | }; 373 | name = Debug; 374 | }; 375 | 97C147041CF9000F007C117D /* Release */ = { 376 | isa = XCBuildConfiguration; 377 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 378 | buildSettings = { 379 | ALWAYS_SEARCH_USER_PATHS = NO; 380 | CLANG_ANALYZER_NONNULL = YES; 381 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 382 | CLANG_CXX_LIBRARY = "libc++"; 383 | CLANG_ENABLE_MODULES = YES; 384 | CLANG_ENABLE_OBJC_ARC = YES; 385 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 386 | CLANG_WARN_BOOL_CONVERSION = YES; 387 | CLANG_WARN_COMMA = YES; 388 | CLANG_WARN_CONSTANT_CONVERSION = YES; 389 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 390 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 391 | CLANG_WARN_EMPTY_BODY = YES; 392 | CLANG_WARN_ENUM_CONVERSION = YES; 393 | CLANG_WARN_INFINITE_RECURSION = YES; 394 | CLANG_WARN_INT_CONVERSION = YES; 395 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 396 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 397 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 398 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 399 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 400 | CLANG_WARN_STRICT_PROTOTYPES = YES; 401 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 402 | CLANG_WARN_UNREACHABLE_CODE = YES; 403 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 404 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 405 | COPY_PHASE_STRIP = NO; 406 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 407 | ENABLE_NS_ASSERTIONS = NO; 408 | ENABLE_STRICT_OBJC_MSGSEND = YES; 409 | GCC_C_LANGUAGE_STANDARD = gnu99; 410 | GCC_NO_COMMON_BLOCKS = YES; 411 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 412 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 413 | GCC_WARN_UNDECLARED_SELECTOR = YES; 414 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 415 | GCC_WARN_UNUSED_FUNCTION = YES; 416 | GCC_WARN_UNUSED_VARIABLE = YES; 417 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 418 | MTL_ENABLE_DEBUG_INFO = NO; 419 | SDKROOT = iphoneos; 420 | SUPPORTED_PLATFORMS = iphoneos; 421 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 422 | TARGETED_DEVICE_FAMILY = "1,2"; 423 | VALIDATE_PRODUCT = YES; 424 | }; 425 | name = Release; 426 | }; 427 | 97C147061CF9000F007C117D /* Debug */ = { 428 | isa = XCBuildConfiguration; 429 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 430 | buildSettings = { 431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 432 | CLANG_ENABLE_MODULES = YES; 433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 434 | ENABLE_BITCODE = NO; 435 | FRAMEWORK_SEARCH_PATHS = ( 436 | "$(inherited)", 437 | "$(PROJECT_DIR)/Flutter", 438 | ); 439 | INFOPLIST_FILE = Runner/Info.plist; 440 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 441 | LIBRARY_SEARCH_PATHS = ( 442 | "$(inherited)", 443 | "$(PROJECT_DIR)/Flutter", 444 | ); 445 | PRODUCT_BUNDLE_IDENTIFIER = com.example.retro95; 446 | PRODUCT_NAME = "$(TARGET_NAME)"; 447 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 448 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 449 | SWIFT_VERSION = 5.0; 450 | VERSIONING_SYSTEM = "apple-generic"; 451 | }; 452 | name = Debug; 453 | }; 454 | 97C147071CF9000F007C117D /* Release */ = { 455 | isa = XCBuildConfiguration; 456 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 457 | buildSettings = { 458 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 459 | CLANG_ENABLE_MODULES = YES; 460 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 461 | ENABLE_BITCODE = NO; 462 | FRAMEWORK_SEARCH_PATHS = ( 463 | "$(inherited)", 464 | "$(PROJECT_DIR)/Flutter", 465 | ); 466 | INFOPLIST_FILE = Runner/Info.plist; 467 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 468 | LIBRARY_SEARCH_PATHS = ( 469 | "$(inherited)", 470 | "$(PROJECT_DIR)/Flutter", 471 | ); 472 | PRODUCT_BUNDLE_IDENTIFIER = com.example.retro95; 473 | PRODUCT_NAME = "$(TARGET_NAME)"; 474 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 475 | SWIFT_VERSION = 5.0; 476 | VERSIONING_SYSTEM = "apple-generic"; 477 | }; 478 | name = Release; 479 | }; 480 | /* End XCBuildConfiguration section */ 481 | 482 | /* Begin XCConfigurationList section */ 483 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 484 | isa = XCConfigurationList; 485 | buildConfigurations = ( 486 | 97C147031CF9000F007C117D /* Debug */, 487 | 97C147041CF9000F007C117D /* Release */, 488 | 249021D3217E4FDB00AE95B9 /* Profile */, 489 | ); 490 | defaultConfigurationIsVisible = 0; 491 | defaultConfigurationName = Release; 492 | }; 493 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 494 | isa = XCConfigurationList; 495 | buildConfigurations = ( 496 | 97C147061CF9000F007C117D /* Debug */, 497 | 97C147071CF9000F007C117D /* Release */, 498 | 249021D4217E4FDB00AE95B9 /* Profile */, 499 | ); 500 | defaultConfigurationIsVisible = 0; 501 | defaultConfigurationName = Release; 502 | }; 503 | /* End XCConfigurationList section */ 504 | }; 505 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 506 | } 507 | --------------------------------------------------------------------------------