Skip to content

Instantly share code, notes, and snippets.

@rubywai
Created May 1, 2023 15:52
Show Gist options
  • Select an option

  • Save rubywai/d4280b8aca670dd7a94338310e889e49 to your computer and use it in GitHub Desktop.

Select an option

Save rubywai/d4280b8aca670dd7a94338310e889e49 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
//Google => Material
//Iphone => Cupertino
//Widget => less ,ful
//debug //release // hybrid
//Container
//project file network memory
//Row Column Wrap Stack ListVeiw GridView
//variable List Map Set
// 6 3 3
void main() {
runApp(const MaterialApp(
debugShowCheckedModeBanner: false,
home: FirstApp(),
));
}
class FirstApp extends StatelessWidget {
const FirstApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(),
body: Container(
width: double.infinity,
height: double.infinity,
color: Colors.black,
child: Wrap(
textDirection: TextDirection.ltr,
direction: Axis.horizontal,
verticalDirection: VerticalDirection.down,
spacing: 8.0,
runSpacing: 38.0,
alignment: WrapAlignment.center,
children:
[
for(int i=0;i<20;i++)
ElevatedButton(
onPressed: (){
}, child: Text('Button $i'))
],),
)
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment