Skip to content

Instantly share code, notes, and snippets.

@DaisukeNagata
Created January 17, 2022 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DaisukeNagata/572f405532d9560074687c79290bed22 to your computer and use it in GitHub Desktop.
Save DaisukeNagata/572f405532d9560074687c79290bed22 to your computer and use it in GitHub Desktop.
Whenever I called Scaffold with Scaffold, I confirmed that Tab was on the Keyboard.
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() {
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
theme: new ThemeData(
primarySwatch: Colors.blue,
),
home: Scaffold(
body: new MyHomePage(title: 'Flutter Demo Home Page'),),
// home: new ExpandableView(),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({required this.title});
final String title;
@override
_MyHomePageState createState() => new _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SingleChildScrollView(
child: Column(
children: <Widget>[
Padding(padding: EdgeInsets.only(top: 100)),
new TextField(),
],
),
),
bottomNavigationBar: SizedBox(
height: 120,
child: Container(
color: Colors.blue,
alignment: Alignment.topCenter,
child: BottomNavigationBar(
backgroundColor: Colors.blue.withAlpha(0),
elevation: 0,
items: [
BottomNavigationBarItem(
icon: Icon(Icons.home, size: 50),
label: 'Home',
),
BottomNavigationBarItem(
icon: Icon(Icons.child_friendly, size: 50),
label: 'Child',
),
],
selectedItemColor: Colors.black,
unselectedItemColor: Colors.black,
),
),
),
);
}
}
@DaisukeNagata
Copy link
Author

2022-01-18.5.16.16.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment