This file contains hidden or 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
/// Removes the current focus and hides the keyboard when | |
/// the user drags or taps this widget. | |
/// | |
/// Place this widget somewhere near the top of your widget | |
/// tree and when the user drags or taps outside of a focused widget, | |
/// the focus will be removed and the keyboard will be hidden. | |
class KeyboardDismiss extends StatelessWidget { | |
final Widget child; | |
final bool dismissOnTap; |
This file contains hidden or 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
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override |
This file contains hidden or 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 'dart:convert'; | |
void main() { | |
String dataString = """[ | |
{ | |
"placeImage":"images/fish2.jpg", | |
"placeName":"Ikan 2", | |
"placeItem":["fish, crab, seafood"], | |
"minOrder":20 | |
} |
NewerOlder