-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from guchengxi1994/dev
0.1.7
- Loading branch information
Showing
52 changed files
with
2,311 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
lib/components/applications/_system_applications/editor_application.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import 'package:appflowy_editor/appflowy_editor.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_desktop/components/applications/_system_applications/details.dart' | ||
show editorDetails; | ||
|
||
import '../application.dart'; | ||
|
||
Application editorApplication() { | ||
return Application( | ||
uuid: editorDetails.uuid, | ||
name: editorDetails.name, | ||
resizable: false, | ||
child: const EditorForm(), | ||
); | ||
} | ||
|
||
class EditorForm extends StatefulWidget { | ||
const EditorForm({super.key}); | ||
|
||
@override | ||
State<EditorForm> createState() => _EditorFormState(); | ||
} | ||
|
||
class _EditorFormState extends State<EditorForm> { | ||
final editorState = EditorState.empty(); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return SizedBox( | ||
height: 500, | ||
width: 1100, | ||
child: AppFlowyEditor( | ||
editorState: editorState, | ||
), | ||
); | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
lib/components/applications/_system_applications/game_center_application.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_desktop/components/app_style.dart'; | ||
import 'package:flutter_desktop/components/applications/_system_applications/details.dart' | ||
show gameCenterDetails; | ||
import 'package:flutter_desktop/components/applications/application.dart'; | ||
import 'package:flutter_desktop/components/minesweeper/minesweeper_details.dart'; | ||
|
||
import 'system_application_builder.dart'; | ||
|
||
Application gameCenterApplication() { | ||
return Application( | ||
uuid: gameCenterDetails.uuid, | ||
name: gameCenterDetails.name, | ||
resizable: false, | ||
background: AppStyle.dark, | ||
child: const GameCenterForm(), | ||
); | ||
} | ||
|
||
class GameCenterForm extends StatefulWidget { | ||
const GameCenterForm({super.key}); | ||
|
||
@override | ||
State<GameCenterForm> createState() => _GameCenterFormState(); | ||
} | ||
|
||
class _GameCenterFormState extends State<GameCenterForm> { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Wrap( | ||
children: [ | ||
SystemApplicationBuilder.build(context, mineEasyDetails), | ||
], | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_desktop/components/app_style.dart'; | ||
import 'package:flutter_desktop/components/applications/application.dart'; | ||
import 'package:flutter_desktop/components/minesweeper/minesweeper_details.dart'; | ||
import 'package:minesweeper/lib.dart'; | ||
|
||
Application minesweeperApplication() { | ||
return Application( | ||
uuid: mineEasyDetails.uuid, | ||
name: mineEasyDetails.name, | ||
resizable: false, | ||
background: AppStyle.light, | ||
child: const MinesweeperForm(), | ||
); | ||
} | ||
|
||
class MinesweeperForm extends StatefulWidget { | ||
const MinesweeperForm({super.key}); | ||
|
||
@override | ||
State<MinesweeperForm> createState() => _MinesweeperFormState(); | ||
} | ||
|
||
class _MinesweeperFormState extends State<MinesweeperForm> { | ||
@override | ||
Widget build(BuildContext context) { | ||
return const MinesweeperWindow(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import 'package:flutter_desktop/components/applications/application_details.dart'; | ||
|
||
import '../app_style.dart'; | ||
|
||
ApplicationDetails mineEasyDetails = ApplicationDetails( | ||
uuid: "system-minesweeper", | ||
xmax: 300, | ||
ymax: 350, | ||
name: SystemConfig.sMinesweeper, | ||
needsTaskbarDisplay: true, | ||
needsTrayDisplay: true, | ||
iconUrl: "assets/images/appicons/mine.png", | ||
deletable: false, | ||
resizable: false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Miscellaneous | ||
*.class | ||
*.log | ||
*.pyc | ||
*.swp | ||
.DS_Store | ||
.atom/ | ||
.buildlog/ | ||
.history | ||
.svn/ | ||
migrate_working_dir/ | ||
|
||
# IntelliJ related | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
# The .vscode folder contains launch configuration and tasks you configure in | ||
# VS Code which you may wish to be included in version control, so this line | ||
# is commented out by default. | ||
#.vscode/ | ||
|
||
# Flutter/Dart/Pub related | ||
**/doc/api/ | ||
**/ios/Flutter/.last_build_id | ||
.dart_tool/ | ||
.flutter-plugins | ||
.flutter-plugins-dependencies | ||
.packages | ||
.pub-cache/ | ||
.pub/ | ||
/build/ | ||
|
||
# Symbolication related | ||
app.*.symbols | ||
|
||
# Obfuscation related | ||
app.*.map.json | ||
|
||
# Android Studio will place build artifacts here | ||
/android/app/debug | ||
/android/app/profile | ||
/android/app/release | ||
|
||
/example |
Oops, something went wrong.