Skip to content

Instantly share code, notes, and snippets.

@DaisukeNagata
Created January 10, 2022 10:17
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/497db09afa75698c869107c1e523b76d to your computer and use it in GitHub Desktop.
Save DaisukeNagata/497db09afa75698c869107c1e523b76d to your computer and use it in GitHub Desktop.
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: 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-10.19.13.00.mov

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