This file contains 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
Container( | |
color: Colors.cyanAccent, | |
child: Container( | |
child: Container( | |
width: MediaQuery.of(context).size.width, | |
height:MediaQuery.of(context).size.height, | |
padding: const EdgeInsets.all(15.0), | |
alignment: Alignment.bottomCenter, | |
decoration: BoxDecoration( | |
color: const Color(0xff7c94b6), |
This file contains 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
class Car extends StatelessWidget { | |
const Car({ Key key }) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Container(color: const Color(0xFF2DBD3A)); | |
} | |
} |
This file contains 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
class BlueCar extends StatefulWidget { | |
const BlueCar({ Key key, @required child }) : super(key: key); // Constructor | |
@override | |
_BlueCarState createState() => _BlueCarState(); | |
} | |
class _BlueCarState extends State<BlueCar> { | |
@override | |
Widget build(BuildContext context) { |
This file contains 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
Column( | |
crossAxisAlignment: CrossAxisAlignment.start, | |
mainAxisSize: MainAxisSize.min, | |
children: <Widget>[ | |
Container( | |
height: MediaQuery.of(context).size.height/3, | |
width: MediaQuery.of(context).size.width, | |
color: Colors.cyan[300], | |
),// Container | |
Container( |
This file contains 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
ListView( | |
padding: const EdgeInsets.all(8.0), | |
scrollDirection: Axis.horizontal, // scrollDirection: Axis.vertical, implements vertical scrolling | |
children: <Widget>[ | |
Container( | |
height: MediaQuery.of(context).size.height/4, | |
width: MediaQuery.of(context).size.width/3, | |
color: Colors.amber[600], | |
child: const Center(child: Text('Entry A')), | |
), |
This file contains 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
import 'package:flutter/cupertino.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override |
This file contains 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
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Welcome to Flutter', |
This file contains 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
import 'package:flutter/material.dart'; | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, // to remove debug flag | |
home: Scaffold( |
print("sdasdsad")
OlderNewer