1
1
import 'dart:io' ;
2
2
3
+ import 'package:corecoder_develop/plugins_browser.dart' ;
3
4
import 'package:corecoder_develop/settings.dart' ;
4
5
import 'package:corecoder_develop/util/cc_project_structure.dart' ;
5
6
import 'package:corecoder_develop/util/desktop_tabbar.dart' ;
@@ -8,6 +9,7 @@ import 'package:flutter/material.dart';
8
9
import 'package:flutter/widgets.dart' ;
9
10
10
11
import 'editor.dart' ;
12
+ import 'main.dart' ;
11
13
import 'util/modules_manager.dart' ;
12
14
13
15
import 'package:shared_preferences/shared_preferences.dart' ;
@@ -106,7 +108,7 @@ class _HomePageState extends State<HomePage> {
106
108
late ModulesManager mm;
107
109
final Future <SharedPreferences > _pref = SharedPreferences .getInstance ();
108
110
109
- List <Widget > get projectWidgetsMobile {
111
+ List <Widget > get projectsWidgetList {
110
112
var result = < Widget > [];
111
113
for (HistoryItem p in RecentProjectsManager .instance.projects) {
112
114
// if (p.name == "") {
@@ -457,7 +459,7 @@ class _HomePageState extends State<HomePage> {
457
459
child: Container (
458
460
padding: isLandscape? EdgeInsets .zero : const EdgeInsets .all (16.0 ),
459
461
constraints: BoxConstraints (
460
- minHeight: MediaQuery .of (context).size.height - 50 ,
462
+ minHeight: MediaQuery .of (context).size.height - 34 ,
461
463
minWidth: double .infinity),
462
464
child:
463
465
isLandscape?
@@ -468,13 +470,13 @@ class _HomePageState extends State<HomePage> {
468
470
DesktopTabBar (
469
471
tabs: < DesktopTabData > [
470
472
DesktopTabData (icon: const Icon (Icons .featured_play_list), title: const Text ("Projects" )),
471
- DesktopTabData (icon: const Icon (Icons .featured_play_list ), title: const Text ("Plugins" )),
472
- DesktopTabData (icon: const Icon (Icons .featured_play_list ), title: const Text ("Examples " )),
473
+ DesktopTabData (icon: const Icon (Icons .input ), title: const Text ("Plugins" )),
474
+ DesktopTabData (icon: const Icon (Icons .settings ), title: const Text ("Settings " )),
473
475
],
474
476
content: < Widget > [
475
- Column (children: projectWidgetsMobile ),
476
- Column (),
477
- Column ( ),
477
+ Column (children: projectsWidgetList ),
478
+ const PluginsBrowser (),
479
+ SettingsPage (mm ),
478
480
])
479
481
:
480
482
@@ -503,12 +505,12 @@ class _HomePageState extends State<HomePage> {
503
505
),
504
506
]),
505
507
Column (
506
- children: projectWidgetsMobile ,
508
+ children: projectsWidgetList ,
507
509
)
508
510
]),
509
511
));
510
512
return Scaffold (
511
- appBar: AppBar (
513
+ appBar: CoreCoderApp . isLandscape (context) ? null : AppBar (
512
514
title: const Text ("CoreCoder Develop" ),
513
515
centerTitle: true ,
514
516
actions: [
0 commit comments