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:io'; | |
import 'package:dio/dio.dart'; | |
import 'package:meta/meta.dart'; | |
import 'errors.dart'; | |
import 'models/base_model.dart'; | |
import 'package:equatable/equatable.dart'; | |
import 'package:flutter/foundation.dart'; |
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
beglitter | |
belitter | |
blitter | |
litter | |
liter | |
iter | |
ter | |
er | |
r |
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
// 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
// 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 'package:flutter/material.dart'; | |
import 'package:learn_fazz/widgets/post_feed_card.dart'; | |
class CoursePage extends StatefulWidget { | |
static String tag = '/course-page'; | |
@override | |
_CoursePageState createState() => _CoursePageState(); | |
} |
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
directTrain(saarbruecken,dudweiler). | |
directTrain(forbach,saarbruecken). | |
directTrain(freyming,forbach). | |
directTrain(stAvold,freyming). | |
directTrain(fahlquemont,stAvold). | |
directTrain(metz,fahlquemont). | |
directTrain(nancy,metz). | |
direct(X, Y) :- directTrain(X, Y). | |
direct(X, Y) :- directTrain(Y, X). |
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
group('User inputs valid form values', () { | |
const Duration delayedDuration = const Duration(milliseconds: 50); | |
setUp(() { | |
mockHttpClient = MockHttpClient(); | |
when(mockHttpClient.post<Map<String, dynamic>>(any, | |
data: anyNamed('data'))) | |
.thenAnswer((_) async { | |
await Future.delayed(delayedDuration); | |
return Future<Response<Map<String, dynamic>>>.value( |
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
Future<void> chooseImageFromImagePicker(WidgetTester tester, {bool shouldConfirm = true}) async { | |
channel.setMockMethodCallHandler((MethodCall methodCall) async { | |
log.add(methodCall); | |
return './assets/images/pattern-bg.png'; | |
}); | |
await tester.tap(find.byKey(const Key('addPhotoLabel'))); | |
await tester.pump(); | |
await tester.pumpAndSettle(); |
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
class MockHttpClient extends Mock implements Dio {} | |
void main() { | |
Dio mockHttpClient = MockHttpClient(); | |
const MethodChannel channel = | |
MethodChannel('plugins.flutter.io/image_picker'); | |
final List<MethodCall> log = <MethodCall>[]; | |
} |
NewerOlder