-
-
Notifications
You must be signed in to change notification settings - Fork 200
Scaffold #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Scaffold #52
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
1a07f8d
remove split_view package
lesliearkorful 42f92a7
create title_bar
lesliearkorful 9a2ec6c
create sidebar
lesliearkorful 88bca42
create content_area
lesliearkorful 933f651
remove titlebar in MainFlutterWindow.swift
lesliearkorful 326a7c4
Update pubspec.lock
lesliearkorful 714427d
create resizable_pane
lesliearkorful 91e6b58
create resizable_pane_notifier
lesliearkorful 05d42f1
Update scaffold.dart
lesliearkorful 3943385
Update macos_ui.dart
lesliearkorful 0a7a226
Update main.dart
lesliearkorful da313cf
Merge branch 'dev' into scaffold
lesliearkorful f3c66e9
[example] add resizable pane
lesliearkorful 605b87e
add dividerColor to MacosThemeData
lesliearkorful 55c52c8
use BoxDecoration in Sidebar
lesliearkorful abc7c64
use SafeArea in ContentArea
lesliearkorful 776f114
update ResizablePane
lesliearkorful 935694b
update scaffold
lesliearkorful 636639c
make `ResizablePane` `const`
lesliearkorful 10ba752
make `Sidebar` `const`
lesliearkorful 77098cc
make `TitleBar` `const`
lesliearkorful 4a4f372
make `Scaffold` `const`
lesliearkorful cf7c9d1
Update CHANGELOG.md
lesliearkorful b6d94c9
Update resizable_pane.dart
lesliearkorful b4c1e1f
add maybeOf to scaffold
lesliearkorful ef7b804
Merge branch 'dev' into scaffold
lesliearkorful 4ce9eb8
Update macos_ui.dart
lesliearkorful b7525f9
Update scaffold.dart
lesliearkorful 02bcb0a
add `scaffoldBreakpoint` to `sidebar`
lesliearkorful d175d96
use sidebar breakpoint and toggling in `Scaffold`
lesliearkorful 48627a9
use `scaffoldBreakpoint` in `ResizablePane`
lesliearkorful 029716c
update example
lesliearkorful e700188
Address some requested changes
GroovinChip File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,39 @@ | ||
| import 'package:macos_ui/macos_ui.dart'; | ||
| import 'package:macos_ui/src/layout/scaffold.dart'; | ||
| import 'package:macos_ui/src/library.dart'; | ||
|
|
||
| /// The widget that fills the rest of the body of the macOS [Scaffold]. | ||
| /// | ||
| /// A [Scaffold] can contain only one [ContentArea]. | ||
| class ContentArea extends StatelessWidget { | ||
| /// Creates a widget that fills the body of the scaffold. | ||
| /// The [builder] can be null to show an empty widget. | ||
| /// | ||
| /// The width of this | ||
| /// widget is automatically calculated in [ScaffoldScope]. | ||
| const ContentArea({Key? key, @required this.builder}) : super(key: key); | ||
|
|
||
| /// The builder that creates a child to display in this widget, which will | ||
| /// use the provided [_scrollController] to enable the scrollbar to work. | ||
| /// | ||
| /// Pass the [_scrollController] obtained from this method, to a scrollable | ||
| /// widget used in this method to work with the internal [Scrollbar]. | ||
| final ScrollableWidgetBuilder? builder; | ||
|
|
||
| static final _scrollController = ScrollController(); | ||
|
|
||
| @override | ||
| Widget build(BuildContext context) { | ||
| return SizedBox( | ||
| width: ScaffoldScope.of(context).contentAreaWidth, | ||
| child: SafeArea( | ||
| left: false, | ||
| right: false, | ||
| child: Scrollbar( | ||
| controller: _scrollController, | ||
| child: builder!(context, _scrollController), | ||
| ), | ||
| ), | ||
| ); | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.