mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 17:29:50 +08:00
FolderListing: Indent sub-folders
This commit is contained in:
@ -97,7 +97,12 @@ class FolderTileState extends State<FolderTile> {
|
||||
}
|
||||
|
||||
Widget _getChild() {
|
||||
return _isExpanded ? widget.childList : Container();
|
||||
if (!_isExpanded) return Container();
|
||||
|
||||
return Container(
|
||||
margin: const EdgeInsets.only(left: 16.0),
|
||||
child: widget.childList,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:gitjournal/state_container.dart';
|
||||
|
||||
import 'journal_listing.dart';
|
||||
import 'folder_listing.dart';
|
||||
|
||||
class HomeScreen extends StatelessWidget {
|
||||
@override
|
||||
|
Reference in New Issue
Block a user