Skip to content

Instantly share code, notes, and snippets.

View boldijar's full-sized avatar
🏄‍♂️
surfing through native android and ios codebases

Boldijar Paul boldijar

🏄‍♂️
surfing through native android and ios codebases
View GitHub Profile
import 'package:flutter/material.dart';
class SettingsWidget extends StatefulWidget {
SettingsWidget({Key key}) : super(key: key);
@override
_SettingsWidgetState createState() => new _SettingsWidgetState();
}
@override
Widget build(BuildContext context) {
return new Container(
color: Colors.white,
child: new Center(
child:
new DropdownButton(
value: _currentCity,
items: _dropDownMenuItems,
onChanged: changedDropDownItem,
List _cities =
["Cluj-Napoca", "Bucuresti", "Timisoara", "Brasov", "Constanta"];
List<DropdownMenuItem<String>> _dropDownMenuItems;
String _currentCity;
@override
void initState() {
_dropDownMenuItems = getDropDownMenuItems();
_currentCity = _dropDownMenuItems[0].value;
import 'package:flutter/material.dart';
class SettingsWidget extends StatefulWidget {
SettingsWidget({Key key}) : super(key: key);
@override
_SettingsWidgetState createState() => new _SettingsWidgetState();
}
@boldijar
boldijar / circle_image_flutter_demo.dart
Created March 9, 2018 17:36
Just showing how we can implement a circlular / circle image view in flutter
import 'package:flutter/material.dart';
class DebugUiPage extends StatefulWidget {
DebugUiPage({Key key}) : super(key: key);
@override
_DebugUiPageState createState() => new _DebugUiPageState();
}
class _DebugUiPageState extends State<DebugUiPage> {
new Container(
width: 190.0,
height: 190.0,
decoration: new BoxDecoration(
shape: BoxShape.circle,
image: new DecorationImage(
fit: BoxFit.fill,
image: new NetworkImage(
"https://i.imgur.com/BoN9kdC.png")
)
new Container(
width: 190.0,
height: 190.0,
decoration: new BoxDecoration(
shape: BoxShape.circle,
image: new DecorationImage(
fit: BoxFit.fill,
image: new NetworkImage(
"https://i.imgur.com/BoN9kdC.png")
)
import 'package:flutter/material.dart';
class DebugUiPage extends StatefulWidget {
DebugUiPage({Key key}) : super(key: key);
@override
_DebugUiPageState createState() => new _DebugUiPageState();
}
class _DebugUiPageState extends State<DebugUiPage> {
import 'package:flutter/material.dart';
class DebugUiPage extends StatefulWidget {
DebugUiPage({Key key}) : super(key: key);
@override
_DebugUiPageState createState() => new _DebugUiPageState();
}
class _DebugUiPageState extends State<DebugUiPage> {
import 'package:flutter/material.dart';
class DebugUiPage extends StatefulWidget {
DebugUiPage({Key key}) : super(key: key);
@override
_DebugUiPageState createState() => new _DebugUiPageState();
}
class _DebugUiPageState extends State<DebugUiPage> {