Skip to content

Instantly share code, notes, and snippets.

@rubywai
Created May 1, 2023 13:25
Show Gist options
  • Save rubywai/0c983d0a0ef834b98b0fd014247f1065 to your computer and use it in GitHub Desktop.
Save rubywai/0c983d0a0ef834b98b0fd014247f1065 to your computer and use it in GitHub Desktop.
//debug release profile
//assets file binary network
//container
// Material , Cupertino
//Stateless .Stateful
import 'dart:developer';
import 'package:flutter/material.dart';
//asset file network memory
void main(){
runApp(
const MaterialApp(
debugShowCheckedModeBanner: false,
home : Home()
)
);
}
class Home extends StatelessWidget {
const Home({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
leading: const Icon(Icons.info, color: Colors.white,),
title: const Text('My Flutter apps'),
actions: const [
Icon(Icons.settings),
Icon(Icons.add, size: 40,)
],
centerTitle: true,
),
body: Container(
padding: const EdgeInsets.all(8),
margin: const EdgeInsets.all(8),
decoration: BoxDecoration(
color: Colors.indigo,
border: Border.all(color: Colors.red,width: 8),
borderRadius: BorderRadius.only(topLeft: Radius.circular(40),
topRight: Radius.circular(10))
),
width: 300,
height: 300,
alignment: Alignment.topRight,
child: const Text('A wiki (/ˈwɪki/ (listen) WIK-ee) is an online hypertext publication collaboratively edited and managed by its own audience, using a web browser. A typical wiki contains multiple pages for the subjects or scope of the project, and could be either open to the public or limited to use within an organization for maintaining its internal knowledge base.',style: TextStyle(color: Colors.white),),
),
floatingActionButton: FloatingActionButton(
onPressed: (){
log('Click the floating action button');
},
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment