Skip to content
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

bug which hides status bar #6

Merged
merged 1 commit into from Dec 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
66 changes: 33 additions & 33 deletions lib/CodeScreen.dart
Expand Up @@ -22,28 +22,28 @@ class CodeScreenState extends State<CodeScreen> {

@override
Widget build(BuildContext context) {
return SafeArea(
child: Scaffold(
key: _scaffoldKey,
backgroundColor: _bgColor,
appBar: AppBar(
centerTitle: true,
title: Text(
'Code',
style: TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.bold,
fontFamily: Utils.ubuntuRegularFont),
),
actions: <Widget>[
IconButton(
icon: Icon(_actionIcon),
onPressed: () => setDarkTheme(_isDarkThemeSet ? false : true))
],
return Scaffold(
key: _scaffoldKey,
backgroundColor: _bgColor,
appBar: AppBar(
centerTitle: true,
title: Text(
'Code',
style: TextStyle(
fontSize: 20.0,
fontWeight: FontWeight.bold,
fontFamily: Utils.ubuntuRegularFont),
),
actions: <Widget>[
IconButton(
icon: Icon(_actionIcon),
onPressed: () => setDarkTheme(_isDarkThemeSet ? false : true))
],
),

/// Scrollbar widget to show scrollbar while scrolling
body: Scrollbar(
/// Scrollbar widget to show scrollbar while scrolling
body: SafeArea(
child: Scrollbar(
/// For horizontal scrolling
child: SingleChildScrollView(
scrollDirection: Axis.horizontal,
Expand All @@ -69,19 +69,19 @@ class CodeScreenState extends State<CodeScreen> {
),
),
),
floatingActionButton: FloatingActionButton.extended(
onPressed: () {
Clipboard.setData(new ClipboardData(text: widget.code));
_scaffoldKey.currentState.showSnackBar(
new SnackBar(
content: new Text("Copied to Clipboard"),
),
);
},
label: Text("Copy"),
icon: Icon(
Icons.content_copy,
),
),
floatingActionButton: FloatingActionButton.extended(
onPressed: () {
Clipboard.setData(new ClipboardData(text: widget.code));
_scaffoldKey.currentState.showSnackBar(
new SnackBar(
content: new Text("Copied to Clipboard"),
),
);
},
label: Text("Copy"),
icon: Icon(
Icons.content_copy,
),
),
);
Expand Down